/* /css/style_projets.css */

/* SECTION ACCUEIL / HERO */
.hero-section {
    position: relative;
    background-image: url('https://www.ecomelio.fr/images/mur_blanc.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #111111;
}

.hero-section-2,
.hero-section-3 {
    padding: 100px 10px;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 0.38vw + 0.8rem, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    text-transform: uppercase;
    margin-bottom: 20px;
}

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

.hero-title {
    font-size: clamp(3.5rem, 2.63vw + 2.99rem, 5.25rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', 'Lucida', Georgia, serif;
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1.125rem, 0.56vw + 1.02rem, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.005em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    margin-bottom: 40px;
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(2.25rem, 1.74rem + 2.63vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: "Tiempos Headline", Georgia, serif;
    line-height: 1.16;
}

.separator-line {
    width: 60px;
    height: 4px;
    background-color: #111111;
    margin: 20px auto;
}

/* CONTENEUR DES CARTES DE PROJET */
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

/* LIEN DE LA CARTE (pour rendre la carte cliquable) */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;  /* Chaque lien prend toute la largeur de la carte */
    transition: transform 0.2s;
}

.card-link:hover {
    transform: translateY(-4px);
}

/* BARRE DE PROGRESSION */
.progress-container {
    background-color: #e1e1e1;
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.4s ease;
}

.progress-bar-active {
    background-color: #28a745;
}

.progress-bar-grey {
    background-color: #cfcfcf;
}

/* DESIGN DE LA CARTE DE PROJET */
.project-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    max-width: 350px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card .media-content {
    width: 100%;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.text-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Tiempos Headline', Georgia, serif;
}

.project-card p {
    font-size: 1rem;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    margin-bottom: 10px;
}

.project-invest-info {
    margin-top: 20px;
}

.project-invest-info p {
    margin-bottom: 5px;
}

/* RESPONSIVITÉ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .project-container {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        max-width: 100%;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}
