* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    color: #c5c5ee;
    background-color: #0a0a0a;
    min-block-size: 100svh;
}

.main {
    display: flex;
    justify-content: space-between;
    align-items: stretch;  
    padding: 1.25rem;
    gap: 1rem;
    background-color: #272729;
    border-radius: 0.5rem;
}

/* 🔹 Blocs */
#jdma, 
#younivers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5em;
    border-radius: 0.75em;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    gap: 1.5rem; /* Ajoute un espace entre l’image et le texte */
}

#titl_txt_bton {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#jdma img, 
#younivers img {
    max-width: 40%; /* Empêche les images d’être trop grandes */
    height: auto; /* Maintient le ratio */
    border-radius: 1em;
    flex-shrink: 0;
    object-fit: cover; /* Évite l’étirement de l’image */
}


#jdma h2, 
#younivers h2 {
    text-align: center;
}

#jdma p, 
#younivers p {
    text-align: justify;
    padding: 1em 1em;
}

#jdma {
    background-image: linear-gradient(
        62deg,
        #425172 0%,
        #8caeed 100%
    );
    color: #fce9e3;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#younivers {
    background-image: linear-gradient(
        62deg,
        #3a2b85 0%,
        #8c46a1 100%
    );
    color: #ff443e;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#younivers p {
    color: #fcc2c0;
}

@media (max-width: 1280px) {
    .main {
        flex-direction: column;
        gap: 2rem;
    }

    #jdma, 
    #younivers {
        flex-direction: column;
        align-items: center;
    }

    #jdma img, 
    #younivers img {
        max-width: 80%;
    }
}
