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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #10817D;
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    text-align: center;
    /* margin-bottom: 50px; */
}

.header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative; /* allow absolute children like flag */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: #10817D;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-link {
    color: #10817D;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.project-link:hover {
    border-bottom: 2px solid #10817D;
}

/* Petit drapeau français en haut à droite de la carte */
.flag-fr {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 22px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background-image: linear-gradient(90deg, #0055A4 0%, #0055A4 33.333%, #FFFFFF 33.333%, #FFFFFF 66.666%, #EF4135 66.666%, #EF4135 100%);
    background-size: 100% 100%;
    pointer-events: none;
}

/* Styles for .kofi-link */
.kofi-link {
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
    opacity: 0.95;
}

.kofi-link:hover,
.kofi-link:focus {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    opacity: 1;
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .container {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    body {
        padding: 10px;
    }
    
    .flag-fr {
        width: 28px;
        height: 18px;
        top: 10px;
        right: 10px;
    }
}