/* Variables CSS pour le thème vert d'eau */
:root {
    --primary-color: #20b2aa;      /* Vert d'eau principal */
    --primary-light: #40d3ca;     /* Vert d'eau clair */
    --primary-dark: #008b8b;      /* Vert d'eau foncé */
    --secondary-color: #48d1cc;   /* Turquoise */
    --accent-color: #00ffff;      /* Cyan */
    --text-dark: #2c3e50;         /* Texte foncé */
    --text-light: #34495e;        /* Texte léger */
    --text-muted: #7f8c8d;        /* Texte discret */
    --background-light: #f8fdfd;  /* Fond clair */
    --background-white: #ffffff;  /* Fond blanc */
    --border-color: #e0f2f1;      /* Couleur bordure */
    --shadow-light: 0 2px 10px rgba(32, 178, 170, 0.1);
    --shadow-medium: 0 4px 20px rgba(32, 178, 170, 0.15);
    --shadow-heavy: 0 8px 30px rgba(32, 178, 170, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Styles pour le bouton dark mode */
#darkModeToggle {
    padding: 0.5rem;
    min-width: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 0.5rem;
}

#darkModeToggle i {
    font-size: 1rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(248, 253, 253, 0.9) 0%, rgba(32, 178, 170, 0.05) 100%), url('circuit-board-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(32, 178, 170, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(72, 209, 204, 0.4) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.3) 0%, transparent 35%);
    background-size: 200% 200%;
    animation: subtleMove 20s linear infinite;
    z-index: -1;
    opacity: 1;
}

/* Dark mode */
.dark-mode .hero {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(32, 178, 170, 0.05) 100%), url('circuit-board-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dark-mode .hero::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(32, 178, 170, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(72, 209, 204, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.2) 0%, transparent 35%);
    opacity: 0.8;
}

.dark-mode .hero-content {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes subtleMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 253, 253, 0.9) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    animation: float 6s ease-in-out infinite;
}


.floating-icon {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    animation: bounce 2s ease-in-out infinite;
}

.icon-1 {
    top: 20px;
    right: 80px;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 30px;
    left: 50px;
    animation-delay: 0.5s;
}

.icon-3 {
    top: 100px;
    left: 20px;
    animation-delay: 1s;
}

.icon-4 {
    bottom: 120px;
    right: 30px;
    animation-delay: 1.5s;
}

/* Suppression des connexions des icônes - elles restent simples */

/* Animations supprimées - design statique et simple */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--background-light);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: var(--background-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--background-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Styles pour les cartes dépliables en mobile */
.project-card .project-description,
.project-card .project-tech {
    transition: all 0.3s ease;
}

/* Styles de base pour les cartes repliées - UNIQUEMENT en mobile */
.project-card.collapsed .project-description,
.project-card.collapsed .project-tech {
    display: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.project-card:not(.collapsed) .project-description,
.project-card:not(.collapsed) .project-tech {
    display: block !important;
    opacity: 1;
    max-height: 500px;
    transition: all 0.3s ease;
}

/* Sur desktop, forcer l'affichage complet des cartes */
@media (min-width: 769px) {
    .project-card .project-description,
    .project-card .project-tech {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .project-card .expand-toggle {
        display: none !important;
    }
}

.project-card .expand-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.project-card .expand-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-card .expand-toggle i {
    transition: transform 0.3s ease;
}

.project-card.collapsed .expand-toggle i {
    transform: rotate(0deg);
}

.project-card:not(.collapsed) .expand-toggle i {
    transform: rotate(180deg);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--background-white);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max-content, 1fr));
    gap: 0.6rem;
    align-items: start;
}

.tech-tag {
    background: var(--primary-color);
    color: var(--background-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    word-break: keep-all;
    hyphens: none;
    margin: 0.1rem;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.02), rgba(72, 209, 204, 0.02));
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.service-cta {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--background-white);
}



/* Cloud Solutions Section */
.cloud-solutions {
    padding: 80px 0;
    background: var(--background-white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.solution-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.02), rgba(72, 209, 204, 0.02));
    position: relative;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.solution-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.solution-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.solution-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

.solution-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.solution-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.solution-highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.solution-highlight i {
    color: #ffd700;
}

.contact-highlight {
    background: linear-gradient(135deg, #20b2aa, #48d1cc);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 500;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.contact-highlight i {
    color: #ffd700;
    font-size: 1.2rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
}



/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    height: 40px;
    width: 80px;
    align-items: center;
    border-radius: 8px;
}

.footer-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.footer-bottom .attribution {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-bottom .attribution a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .attribution a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-100%);
        flex-direction: column;
        background-color: white;
        width: 90%;
        max-width: 300px;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        border-radius: 15px;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }
    
    /* Optimisation du bouton dark mode en mobile */
    #darkModeToggle {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
        margin-left: 0.3rem;
    }
    
    #darkModeToggle i {
        font-size: 0.9rem;
    }
    
    /* Ajustement du logo en mobile */
    .logo {
        height: 35px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    /* Masquer hero-image en mobile */
    .hero-image {
        display: none;
    }
    
    /* Centrer tous les boutons en mobile */
    .btn {
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-buttons {
        justify-content: center;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    

    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    /* Activer les cartes dépliables en mobile */
    .project-card {
        padding: 1.5rem;
        position: relative;
    }
    
    .project-tech {
        gap: 0.5rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .project-card .expand-toggle {
        display: flex !important;
        visibility: visible !important;
    }
    
    .project-card.collapsed {
        padding-bottom: 1rem;
    }
    
    .project-card.collapsed .project-description,
    .project-card.collapsed .project-tech {
        display: none;
    }

    .about-content {
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        height: 30px;
    }
    
    #darkModeToggle {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
        margin-left: 0.2rem;
    }
    
    #darkModeToggle i {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        width: 95%;
        max-width: 280px;
        border-radius: 12px;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
} 

/* Dark Mode Styles */
body.dark-mode {
    --primary-color: #20b2aa;
    --primary-light: #40d3ca;
    --primary-dark: #008b8b;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #888;
    --background-light: #1a1a1a;
    --background-white: #121212;
    --border-color: #333;
}

.dark-mode {
    background-color: var(--background-white);
    color: var(--text-dark);
}

.dark-mode .header {
    background-color: #1e1e1e !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dark-mode .service-card,
.dark-mode .project-card,
.dark-mode .contact-form,
.dark-mode .certification-card,
.dark-mode .solution-card {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.dark-mode .section-title,
.dark-mode .service-title,
.dark-mode .project-title {
    color: var(--text-dark);
}

.dark-mode .section-description,
.dark-mode .service-description,
.dark-mode .project-description {
    color: var(--text-light);
}

.dark-mode .btn-outline {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.dark-mode .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
    background-color: #2d2d2d;
    border-color: #444;
    color: var(--text-dark);
}

/* Dark mode pour les lignes simples */
.dark-mode .hero-graphic::before {
    opacity: 0.8;
}

/* Dark mode pour le menu mobile */
.dark-mode .nav-menu {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.dark-mode .nav-menu .nav-link {
    color: var(--text-dark);
}

.dark-mode .nav-menu .nav-link:hover {
    color: var(--primary-color);
}

.dark-mode .footer-bottom .attribution {
    color: #95a5a6;
}

.dark-mode .footer-bottom .attribution a {
    color: var(--primary-color);
}

.dark-mode .footer-bottom .attribution a:hover {
    color: var(--secondary-color);
}

/* Certifications intégrées dans About */
.about-certifications {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.about-certifications h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.certifications-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cert-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1), rgba(72, 209, 204, 0.1));
    border: 1px solid rgba(32, 178, 170, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.cert-mini:hover {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.2), rgba(72, 209, 204, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.15);
}

.cert-mini i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Dark mode pour les certifications miniatures */
.dark-mode .about-certifications {
    border-top-color: #333;
}

.dark-mode .cert-mini {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.15), rgba(72, 209, 204, 0.15));
    border-color: rgba(32, 178, 170, 0.3);
    color: var(--text-dark);
}

.dark-mode .cert-mini:hover {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.25), rgba(72, 209, 204, 0.25));
}

/* Responsive pour les certifications miniatures */
@media (max-width: 768px) {
    .certifications-mini {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cert-mini {
        justify-content: center;
        text-align: center;
    }
}

/* Netlify Forms - Masquer le champ honeypot */
.hidden {
    display: none;
}

