.container-image{
    display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding: 10px 50px 0 50px;
  margin-top:176px;
}



.about-image {
  display: flex;
  flex-direction: column; /* empile verticalement l’image et le texte */
  align-items: center;
  grid-column: 2 / span 3;
  text-align: center;
}


.about-image img{
    width: 330px;
    height: auto;
}


.about-pres{
      grid-column: 8 / span 4;
    text-align: right;
    margin-top:26px;
}

.about-pres p{
    font-family: "georgiapro", sans-serif;
    font-size: 16px;
    line-height: 140%;
    margin-bottom:30px;

}


.about-image p {
  display: inline-block;         /* Le fond s’adapte au texte */
  background-color: #58709A;     /* Ton bleu */
  color: #fff;
  padding: 5px 12px;
  max-width: 100%;               /* Ne dépasse pas la largeur de .about-image */
  box-sizing: border-box;        /* Pour que padding soit inclus dans max-width */
    font-family: "georgiapro", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-top:16px;
}


.about-pres a{
    text-decoration: none;
    color: black;
    border : 1px solid black;
    padding : 8px 36px;
}


.about-pres a {
  position: relative;
  overflow: hidden; /* cache ce qui dépasse */
  text-decoration: none;
  color: black;
  border: solid 1px black;
  padding: 8px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: color 0.3s ease;
}

.about-pres a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #58709A; /* couleur de remplissage */
  color: white;
  z-index: -1;
  transition: height 0.4s ease;
  
}

.about-pres a:hover::before {
  height: 100%;
}

.about-pres a:hover {
  color: white; /* texte devient blanc sur fond noir */
}


/* ============================
   RESPONSIVE TABLETTE (<=1024px)
============================ */
@media (max-width: 1024px) {
  .container-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 40px 0 40px;
    margin-top: 100px;
    gap: 30px;
  }

  .about-image {
    grid-column: auto !important;
    text-align: center;
  }

  .about-image img {
    width: 280px;
    max-width: 80vw;
    height: auto;
  }

  .about-image p {
    margin-top: 12px;
    font-size: 16px;
  }

  .about-pres {
    grid-column: auto !important;
    text-align: left;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
  }

  .about-pres p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .about-pres a {
    font-size: 15px;
    padding: 10px 30px;
  }
}

/* ============================
   RESPONSIVE MOBILE (<=768px)
============================ */
@media (max-width: 768px) {
  .container-image {
    padding: 20px;
    gap: 20px;
    margin-top: 100px;
  }

  .about-image,
  .about-pres {
    text-align: center !important;
    width: 100%;
    padding: 0 20px;
  }

  .about-image img {
    width: 80vw;
    max-width: 330px;
  }

  .about-pres {
    text-align: center !important;
  }

  .about-pres p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .about-pres a {
    padding: 10px 25px;
    font-size: 14px;
  }

  .about-image p {
    font-size: 14px;
  }
}

/* ============================
   MOBILE PETIT (<=480px)
============================ */
@media (max-width: 480px) {
  .about-pres p {
    font-size: 14px;
  }

  .about-pres a {
    font-size: 13px;
    padding: 10px 20px;
  }

  .about-image p {
    font-size: 13px;
  }
}