/* ===== Conteneur principal ===== */
.apropos-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ===== Bloc avec fond dégradé animé ===== */
.apropos-block {
  display: grid;
  grid-template-columns: 35% 65%; /* image réduite, texte élargi */
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  margin-bottom: 4rem;
  padding: 2rem 2.5rem; /* plus d’air sur les côtés */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow-default);
  color: var(--white);
  background: linear-gradient(45deg, var(--dark-blue), var(--light-blue), var(--dark-blue));
  background-size: 200% 200%;
  animation: aproposGradientShift 8s ease infinite;
}

@keyframes aproposGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ===== Colonne gauche : image + contact centré ===== */
.apropos-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Image ===== */
.apropos-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow-default);
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.apropos-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Texte (colonne droite) ===== */
.apropos-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 72ch;          /* largeur de lecture confortable */
  width: 100%;
  padding-right: 1.5rem;    /* évite que ça colle au bord droit */
}
.apropos-text h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.6rem;
}
.apropos-text p {
  margin-bottom: 1rem;
  text-align: justify;
}

.apropos-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color .3s ease;
}
.apropos-link:hover,
.apropos-link:focus {
  color: var(--cta-hover);
  outline: none;
}

.cta-row {
  margin-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .apropos-block {
    grid-template-columns: 1fr; /* empile */
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 2rem;
  }
  .apropos-left { align-items: center; }
  .apropos-image { margin-top: 0.5rem; margin-bottom: 1rem; }
  .apropos-text { max-width: 100%; width: 90%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .apropos-main { padding: 0 .5rem; }
  .apropos-text { max-width: 100%; width: 92%; }
}
@media (max-width: 480px) {
  .apropos-main { padding: 0 .3rem; }
  .apropos-block { padding: .8rem .4rem; }
  .apropos-text { max-width: 100%; width: 100%; }
  .back-to-top{ right:12px; bottom:12px; transform: scale(.9); }
  .apropos-block{ margin-bottom:2.25rem; }
}

/* Accessibilité : réduit l’animation si demandé */
@media (prefers-reduced-motion: reduce) {
  .apropos-block { animation: none; }
}

/* ===== A PROPOS — PHOTO ===== */
.apropos-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  box-shadow: var(--box-shadow-default);
  transform: translateZ(0);
}

/* L’image en fond (plein cadre) */
.apropos-photo .apropos-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform .9s cubic-bezier(.22,.61,.36,1), filter .3s ease;
  z-index: 0;
}

/* Léger zoom au survol */
.apropos-photo:hover .apropos-bg {
  transform: scale(1.03);
  filter: brightness(1.02);
}

/* Contenu posé sur l’image (bas-gauche) */
.apropos-photo-content {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white);
}

/* Petite ligne d’accroche au-dessus du bouton */
.photo-kicker {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .95;
}

/* Bouton sur image */
.cta-on-image {
  backdrop-filter: saturate(120%) blur(2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .apropos-photo {
    aspect-ratio: 3 / 4;
    min-height: 440px;
  }
  .apropos-photo-content {
    left: 18px;
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .apropos-photo {
    aspect-ratio: 1 / 1;
    min-height: 360px;
  }
  .photo-kicker {
    font-size: .95rem;
  }
  .cta-on-image {
    padding: 0.6rem 1.1rem;
    font-size: .95rem;
  }
}


/* 1) Mobile : on réduit visuellement la largeur des visuels A propos */
@media (max-width: 414px) {
  .apropos-image,
  .apropos-photo {
    width: 92%;            /* ~ comme tes cartes projet */
    margin: 0.75rem auto;  /* centré + un peu d’air */
  }
}

/* 2) Mobile : on baisse la hauteur de la version avec overlay (.apropos-photo) */
@media (max-width: 414px) {
  .apropos-photo {
    aspect-ratio: 4 / 5;                   /* plus “portrait”, moins haut que 1/1 */
    min-height: clamp(240px, 60vw, 300px); /* limite la hauteur à l’écran */
  }
  .apropos-photo .apropos-bg {
    object-fit: cover;                      /* recadrage propre si besoin */
  }
}


