/* Variables pour les thèmes */
:root {
    /* Thème clair (par défaut) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --card-bg: #ffffff;
    --card-shadow: rgba(0,0,0,0.1);
    --border-color: #e0e0e0;
}

/* Thème sombre */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --card-bg: #2c2c2c;
    --card-shadow: rgba(0,0,0,0.3);
    --border-color: #404040;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header et Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 5px var(--card-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.logo a {
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Contrôles de navigation */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.language-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.language-btn:hover:not(.active) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

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

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Expertise Section */
.services {
    padding: 5rem 5%;
    background-color: var(--bg-secondary);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px var(--card-shadow);
}

.service-card i.fa-code-branch,
.service-card i.fa-shield-alt,
.service-card i.fa-building {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.expertise-details {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.expertise-details li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-details li:before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* reCAPTCHA styles */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Méthodologie Section */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.methodology-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--card-shadow);
}

.methodology-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.methodology-card ul {
    list-style: none;
}

.methodology-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.methodology-card ul li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: var(--bg-secondary);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .methodology-card {
        padding: 1.5rem;
    }
}

/* Articles Section */
.articles {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
    position: relative;
}

.articles h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.articles-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.articles-container {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
}

.article-card {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow);
}

.article-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.article-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* CV Link in Navigation */
.cv-link {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cv-link:hover {
    background-color: var(--accent-hover);
}

/* Responsive Design for Articles */
@media (max-width: 1024px) {
    .article-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .article-card {
        flex: 0 0 100%;
    }
    
    .articles-carousel {
        padding: 0 30px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button.prev {
        left: -15px;
    }
    
    .carousel-button.next {
        right: -15px;
    }
    
    .carousel-button i {
        font-size: 1rem;
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-primary);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.9;
    box-shadow: 0 2px 10px var(--card-shadow);
}

.carousel-button:hover {
    background-color: var(--accent-color);
    color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button.prev {
    left: -25px;
}

.carousel-button.next {
    right: -25px;
}

.carousel-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.carousel-button:hover i {
    transform: scale(1.2);
}

/* Responsive Design for Articles */
@media (max-width: 1024px) {
    .article-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .carousel-button {
        width: 45px;
        height: 45px;
    }
    
    .carousel-button.prev {
        left: -20px;
    }
    
    .carousel-button.next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .article-card {
        flex: 0 0 100%;
    }
    
    .articles-carousel {
        padding: 0 30px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button.prev {
        left: -15px;
    }
    
    .carousel-button.next {
        right: -15px;
    }
    
    .carousel-button i {
        font-size: 1rem;
    }
}

/* Section Statistiques */
.stats-section {
    padding: 60px 0;
    background: var(--bg-secondary);
    margin: 40px 0;
}

.aia-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aia-stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.aia-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.aia-stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.aia-stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.aia-animated-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.aia-stat-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.aia-animated-number-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive design pour les statistiques */
@media (max-width: 768px) {
    .aia-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .aia-stat-item {
        padding: 20px 15px;
    }
    
    .aia-animated-number {
        font-size: 2.5rem;
    }
    
    .aia-stat-suffix {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .aia-stats-container {
        grid-template-columns: 1fr;
    }
    
    .aia-stat-item {
        padding: 25px 20px;
    }
    
    .aia-animated-number {
        font-size: 2.2rem;
    }
    
    .aia-stat-suffix {
        font-size: 1.3rem;
    }
    
    .aia-stat-item i {
        font-size: 2rem;
    }
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tech-icons i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-icons i:hover {
    transform: scale(1.2);
    color: var(--accent-hover);
}

/* Responsive design pour les icônes */
@media (max-width: 768px) {
    .tech-icons {
        gap: 15px;
    }
    
    .tech-icons i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tech-icons {
        gap: 12px;
    }
    
    .tech-icons i {
        font-size: 1.5rem;
    }
}

/* Article Page Styles */
.article-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.article-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-tags {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background-color: var(--accent-color-hover);
}

.article-cta {
    margin: 2rem 0;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background-secondary);
    border-radius: 8px;
}

.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0077b5;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.linkedin-button:hover {
    background-color: #005582;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-tags {
        justify-content: center;
    }
}

/* Articles List Page Styles */
.articles-list {
    padding: 120px 5% 60px;
    background-color: var(--bg-primary);
}

.articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.articles-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.article-icon {
    background-color: var(--accent-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.article-icon i {
    font-size: 2.5rem;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--accent-hover);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Articles List */
@media (max-width: 768px) {
    .articles-list {
        padding: 100px 5% 40px;
    }

    .articles-header h1 {
        font-size: 2rem;
    }

    .articles-intro {
        font-size: 1.1rem;
    }

    .article-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .articles-header h1 {
        font-size: 1.8rem;
    }

    .article-icon {
        padding: 1.5rem;
    }

    .article-icon i {
        font-size: 2rem;
    }

    .article-content {
        padding: 1.2rem;
    }
}

/* Articles Section CTA */
.articles-cta {
    text-align: center;
    margin-top: 3rem;
}

.articles-cta .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.articles-cta .cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
} 