/* -------------------------------------------------------- */
/* main_section_subtitle.css – CLEAN STABLE UI              */
/* -------------------------------------------------------- */

.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);

  /* stable */
  transform: none;

  transition: transform 0.3s ease, box-shadow 0.3s ease;

  overflow-wrap: break-word;
}

/* ========================= */
/* HOVER (seul effet dynamique conservé) */
/* ========================= */

.main-section: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 */
/* ========================= */

.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;
}

.main-section h4 {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.main-section h5 {
  font-size: 1.15em;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

.main-section h6 {
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
}

/* ========================= */
/* TEXTE */
/* ========================= */

.main-section p {
  font-size: 1.2em;
  line-height: 1.6;

  color: #111;
  margin-bottom: 15px;

  text-align: justify;
  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;
}

.main-section a:hover {
  color: #0066B9;
}

/* ========================= */
/* MEDIA */
/* ========================= */

.main-section img,
.main-section video {
  max-width: 100%;
  height: auto;

  margin: 15px auto;
  display: block;

  border-radius: 8px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.main-section audio {
  width: 100%;
  margin: 15px 0;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@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; }
}

@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;
  }
}

@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; }
}