/* --- CONFIGURATION GÉNÉRALE --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #4a4a4a;
    background: url('/img/fond.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* --- HEADER --- */
header {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    backdrop-filter: blur(3px);
    border-radius: 15px;
}

header h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* --- NAVIGATION --- */
nav {
    background: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    padding: 15px;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #6d4c41;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    background: #ffafbd;
    color: white;
}

/* --- CONTENU --- */
.container {
    max-width: 900px; /* Largeur optimale pour texte + image */
    margin: 50px auto;
    padding: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    
    /* On active le flex ici pour aligner texte et image */
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

/* --- AJUSTEMENT DES BLOCS INTERNES --- */
.projet-info, .content-text {
    flex: 1.5; /* Donne plus de place au texte */
}

.projet-visuel, .content-img {
    flex: 1; /* Place pour l'image */
    display: flex;
    justify-content: center;
}

/* --- STYLE DES IMAGES (Taille potable et lisible) --- */
.projet-visuel img, .content-img img {
    width: 100%;
    max-width: 320px; /* Taille idéale pour ton Instagram */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- TAGS --- */
.tag {
    display: inline-block;
    background: #ffc3a0;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 3px;
}

/* --- RESPONSIVE (Pour les téléphones) --- */
@media (max-width: 850px) {
    .glass-card {
        flex-direction: column; /* On empile sur mobile */
        text-align: center;
        padding: 25px;
    }
    
    .projet-visuel img, .content-img img {
        max-width: 280px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
}

/* --- MISE EN PAGE DES PROJETS --- */
.section-projet {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

/* C'est cette règle qui inverse l'ordre ! */
.section-projet.reverse {
    flex-direction: row-reverse;
}

.projet-info {
    flex: 1.5;
}

.projet-visuel {
    flex: 1;
    display: flex;
    justify-content: center;
}

.projet-visuel img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Sur mobile, on remet tout en colonne simple pour que ce soit lisible */
@media (max-width: 768px) {
    .section-projet, .section-projet.reverse {
        flex-direction: column;
        text-align: center;
    }
}