/* Importation de la police Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Réinitialisation et styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    line-height: 1.6;
    background-color: #F3F4F6;
}

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

/* Navigation */
#navbar {
    background-color: #1E3A8A;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #3B82F6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: #FFFFFF;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Section Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
}

.hero .container {
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background-color: #3B82F6;
    color: #FFFFFF;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1E40AF;
}

/* Optimized button for formation cards */
.btn-formation {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-top: 15px;
    display: inline-block;
}

/* Section Générale */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1E3A8A;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #4B5563;
}

.bg-light {
    background-color: #FFFFFF;
}

/* Section À propos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.text-justify {
    text-align: justify;
}

.skills {
    margin-top: 20px;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1E3A8A;
}

.skills-columns {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.skills-list {
    list-style: none;
    flex: 1;
}

.skills-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-list li i {
    color: #3B82F6;
}

.vertical-divider {
    width: 1px;
    background-color: #D1D5DB;
}

/* Section Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon i {
    font-size: 2.5rem;
    color: #3B82F6;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1E3A8A;
}

.service-card p {
    font-size: 1rem;
    color: #4B5563;
}

/* Section Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.portfolio-more {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #FFFFFF;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.portfolio-more:hover {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

/* Section Formations */
.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.formation-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-icon i {
    font-size: 2.5rem;
    color: #3B82F6;
    margin-bottom: 15px;
}

.formation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1E3A8A;
}

.formation-card p {
    font-size: 1rem;
    color: #4B5563;
}

/* Section Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.blog-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #FFFFFF;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.blog-card > * {
    position: relative;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1611224923853-80b023f02d71?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.blog-card:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1551288049-b1f3c6fded6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.blog-card:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1516321310766-66f1ce1b43dd?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.blog-card:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1516321310766-66f1ce1b43dd?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.blog-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #E5E7EB;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-card .btn {
    align-self: center;
    background-color: #3B82F6;
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.blog-card .btn:hover {
    background-color: #1E40AF;
    transform: scale(1.05);
}

/* Section Article */
.article-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.article-content ul {
    list-style: none;
    margin-bottom: 15px;
}

.article-content ul li {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-content ul li:before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #3B82F6;
}

/* Section Contact */
.contact-simple {
    text-align: center;
}

.btn-email {
    background-color: #3B82F6;
    color: #FFFFFF;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.btn-email:hover {
    background-color: #1E40AF;
}

.contact-alternative {
    margin-top: 20px;
}

.blog-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #1E40AF;
}

/* Footer */
footer {
    background-color: #1E3A8A;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #1E3A8A;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skills-columns {
        flex-direction: column;
    }

    .vertical-divider {
        display: none;
    }

    .blog-card {
        height: 300px;
    }

    .blog-card h3 {
        font-size: 1.4rem;
    }

    .blog-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .btn-formation {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .service-card, .portfolio-item, .blog-card, .formation-card {
        padding: 15px;
    }

    .blog-card {
        height: 280px;
    }

    .blog-card h3 {
        font-size: 1.2rem;
    }

    .blog-card p {
        font-size: 0.85rem;
    }
}