/* -------------------------------------------------------- */
/* main.css – Styles pour le main et l'image PHP responsive */
/* -------------------------------------------------------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px; /* Espace autour de tout le contenu */
  position: relative;
  background: linear-gradient(to bottom, rgba(0,191,255,0.6), rgba(0,85,164,0.8));
}

/* Image sacrée ajoutée par PHP */
.main-php-image {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 20px auto; /* marge équilibrée en haut et en bas */
  border-radius: 12px;

  box-shadow: 
    0 6px 25px rgba(0,0,0,0.6),
    0 0 8px rgba(255,255,255,0.3);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-php-image:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 10px 35px rgba(0,0,0,0.75),
    0 0 10px rgba(255,255,255,0.4);
}

/* -------------------------------------------------------- */
/* TITRES (H2 / H3) */
/* -------------------------------------------------------- */

.main-section h2 {
  font-size: 2rem;
  margin: 30px 0 10px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.main-section h3 {
  font-size: 1.4rem;
  margin: 10px 0 20px;
  text-align: center;
  color: #d0eaff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------- */
/* Media queries – responsive pour tous types d'écrans     */
/* -------------------------------------------------------- */

/* Tablette et écrans moyens */
@media (max-width: 1024px) {
  main {
    padding: 18px;
  }
  .main-php-image {
    max-width: 85%;
  }
}

/* Petits écrans – Smartphones */
@media (max-width: 768px) {
  main {
    padding: 15px;
  }
  .main-php-image {
    max-width: 90%;
    margin: 15px auto; /* un peu plus petit pour mobile */
  }
}

/* Très petits écrans – Smartphones étroits */
@media (max-width: 480px) {
  main {
    padding: 12px;
  }
  .main-php-image {
    max-width: 95%;
    margin: 12px auto;
  }
}