#introduction img {
    margin: 0 auto;
    max-width: 100%;
    width: 80%;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.introduction-container h3 {
    margin: 20px;
    color: rgb(177, 220, 248);
    font-weight: bold;
}

#introduction {
    margin: 20px auto;
    width: 65%;
    background-color: rgb(54, 94, 119);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.introduction-container img {
    display: block;
    margin: 0 auto;        
    width: 25%;
    border-radius: 40px;
    box-shadow: 0px 15px 15px 5px rgba(0, 0, 0, 0.1);
}

.introduction-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 20px auto;
}

/* Liste principale sans puces */
.main-list {
  list-style-type: none;  /* enlève les puces */
  padding-left: 0;        /* remet à gauche si besoin */
  margin: 1rem 0;
  color: rgb(236, 183, 67);
  text-align: center;
}

/* Sous-liste avec puces */
.under-list {
  list-style-type: none;
  line-height: 1.3;
  padding: 0.5rem 2rem 2rem;
  color: whitesmoke;
}


/* Section principale des blocs */
.sio {
    display: flex; /* Active Flexbox */
    max-width: 100%;
    width: 75%;
    justify-content: center; /* Centre les blocs horizontalement */
    align-items: flex-start; /* Aligne les blocs en haut */
    gap: 20px; /* Espace entre les blocs horizontalement et verticalement */
    margin: 20px auto; /* Ajoute des marges en haut et en bas */
    flex-wrap: wrap; /* Permet aux blocs de s'enrouler si nécessaire */
    padding: 10px; /* Ajoute un espace autour des blocs */
}

/* Dimensions des blocs */
.sio div {
    display: flex;
    flex-direction: column; /* Aligne le contenu verticalement */
    justify-content: space-between;
    align-items: center;
    max-width: 300px;
    height: 350px;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 15px;
}


/* Images dans les blocs */
.sio img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sio img:hover {
    transform: scale(1.05); /* Agrandit légèrement l'image */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Ajoute une ombre subtile */
}

.sio a {
    text-decoration: none; /* Retire le soulignement sous les liens */
    color: inherit; /* Conserve la couleur héritée */
}

.sio h3 {
    font-style: normal; /* Retire l'italique */
    margin: 10px 0 0 0; /* Espace au-dessus du titre */
    font-weight: normal; /* Normalise l'épaisseur du texte */
}

@media (max-width: 900px) {
  #introduction,
  .introduction-container,
  .sio {
    width: 90%;
    max-width: 100%;
    margin: 10px auto;
  }

  .sio {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
    align-items: stretch; /* cartes de même hauteur */
  }

  /* carte TP */
  .sio div {
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06); /* léger fond pour stabiliser visuellement */
  }

  /* lien = conteneur vertical */
  .sio a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  /* zone image carrée, image contenue, tailles uniformes */
  .sio img {
    width: 100%;
    aspect-ratio: 1 / 1;      /* carré */
    object-fit: contain;       /* pas de rognage, pas de déformation */
    background: #fff;          /* support neutre pour logos */
    border-radius: 12px;
    padding: 10px;             /* un peu d’air autour du logo */
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .3s ease, box-shadow .3s ease;
  }

  /* hover plus sobre en mobile */
  .sio img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }

  /* titre plus compact */
  .sio h3 {
    font-size: 0.95rem;
    line-height: 1.25;
    margin: 0;
  }

  #introduction img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

/* Option très petits écrans (≤ 420px) : passer en 1 colonne */
@media (max-width: 420px) {
  .sio {
    grid-template-columns: 1fr;
  }
}
