/* -------------------------------------------------------- */
/* main_section_subtitle.css – FINAL STABLE + CLEAN         */
/* -------------------------------------------------------- */

.main-section {
  max-width: 800px;
  width: 100%;

  margin: 20px auto;
  padding: 15px 20px;

  box-sizing: border-box;
  text-align: center;

  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;

  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;

  /* stabilité rendu */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ========================= */
/* HOVER */
/* ========================= */

.main-section:hover {
  transform: translateY(-5px) translateZ(0);

  box-shadow: 
    0 10px 35px rgba(0,0,0,0.75),
    0 0 10px rgba(255,255,255,0.4);
}

/* ========================= */
/* TITRES */
/* ========================= */

.main-section h2 {
  font-size: 2em;
  font-weight: 700;

  margin-bottom: 12px;

  color: #0055A4;
  text-shadow: 3px 3px 7px rgba(255,0,100,0.99);

  line-height: 1.3;
}

.main-section h3 {
  font-size: 1.5em;
  font-weight: 600;

  margin-bottom: 10px;

  color: #1e90ff;
  text-shadow: 3px 3px 7px rgba(255,0,100,0.99);

  line-height: 1.3;
}

/* ========================= */
/* TEXTE */
/* ========================= */

.main-section p {
  font-size: 1.2em;
  line-height: 1.6;

  color: #111;

  margin-bottom: 15px;

  text-align: justify;

  /* évite débordement texte long */
  word-break: break-word;
}

/* ========================= */
/* LIENS */
/* ========================= */

.main-section a {
  font-size: 1.2em;

  color: #1e90ff;
  text-decoration: underline;

  display: inline-block;
  margin-top: 10px;

  transition: color 0.3s ease;

  /* stabilité */
  transform: translateZ(0);
}

.main-section a:hover {
  color: #0066B9;
}

/* ======================================================== */
/* ====================== RESPONSIVE ======================= */
/* ======================================================== */

/* -------- TABLET -------- */
@media (max-width: 1024px) {

  .main-section {
    width: 90%;
    padding: 14px 18px;
  }

  .main-section h2 {
    font-size: 1.9em;
  }

  .main-section h3 {
    font-size: 1.4em;
  }

  .main-section p {
    font-size: 1em;
  }

}

/* -------- MOBILE -------- */
@media (max-width: 768px) {

  .main-section {
    width: 95%;
    padding: 12px 15px;
    margin: 15px auto;
  }

  .main-section h2 {
    font-size: 1.7em;
  }

  .main-section h3 {
    font-size: 1.3em;
  }

  .main-section p {
    font-size: 0.95em;
    text-align: left; /* meilleure lisibilité mobile */
  }

}

/* -------- SMALL MOBILE -------- */
@media (max-width: 480px) {

  .main-section {
    width: 95%;
    padding: 10px 12px;
    margin: 12px auto;
  }

  .main-section h2 {
    font-size: 1.5em;
  }

  .main-section h3 {
    font-size: 1.1em;
  }

  .main-section p {
    font-size: 0.9em;
  }

}