:root {
    --primary: #339042;
    --secondary: #ebd542;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #212529;
    --overlay: rgba(0, 0, 0, 0.6);
}

/* Vérification des images */
.hero, .project-card {
    position: relative;
}

.hero::after, .project-card::after {
    content: "Image non chargée";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    z-index: 1;
    display: none;
}

.hero.image-error::after,
.project-card.image-error::after {
    display: block;
}

/* En-tête */
.hero {
    height: 60vh;
    background: linear-gradient(var(--overlay), var(--overlay)), 
                url('../images/comé-hero.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: white;
}

/* Section titre */
.projects-header {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.projects-header h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.projects-header .subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.projects-header .investment {
    font-size: 1.1rem;
    color: var(--secondary);
    background-color: rgba(52, 152, 219, 0.1);
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Conteneur projets */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

/* Cartes projets */
.project-card {
    min-height: 500px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-size: cover;
    background-position: center;
    background-color: var(--secondary);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--overlay), transparent 40%);
    z-index: 1;
}

/* Contenu texte */
.project-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}

.project-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Bouton */
.project-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
}

.project-btn:hover {
    background: transparent;
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2.2rem;
    }
    
    .projects-header .subtitle {
        font-size: 1.2rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-number {
        font-size: 4rem;
    }
}
