/* ===== Section Triathlon ===== */

.content-section {
  padding: 0rem 0rem;                          /* Marge interne haut/bas/gauche/droite */
  text-align: center;                          /* Texte centré */
}

.section-triathlon {
  padding: 80px 20px;
  background-color: #f8f8f6;
  font-family: 'Playfair Display', serif;
  color: #1c1c1c;
}

.section-triathlon .container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 60px 50px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ===== Titres ===== */

.section-triathlon h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: #0d1b2a;
  position: relative;
}

.section-triathlon h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #b38b2d; /* touche dorée élégante */
  margin: 15px auto 0;
}

.section-triathlon h3 {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #0d1b2a;
  border-left: 3px solid #b38b2d;
  padding-left: 15px;
}

/* ===== Paragraphes ===== */

.section-triathlon p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* ===== Liste formats ===== */

.section-triathlon ul {
  margin: 20px 0 30px 20px;
  padding-left: 10px;
  text-align: justify;

}

.section-triathlon li {
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: justify;

}

.section-triathlon li strong {
  color: #0d1b2a;
}

/* ===== Effet élégant discret au survol ===== */

.section-triathlon .container:hover {
  transform: translateY(-2px);
  transition: 0.3s ease;
}

/* ===== Bouton retour en haut ===== */

.bouton-haut {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #0d1b2a;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s ease;
}

.bouton-haut:hover {
  background-color: #b38b2d;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */

@media screen and (max-width: 768px) {

  .section-triathlon {
    padding: 40px 15px;
  }

  .section-triathlon .container {
    padding: 30px 20px;
    margin: 0;
    border-radius: 0; /* plus moderne sur mobile */
    box-shadow: none; /* évite l'effet carte trop étroite */
  }

  .section-triathlon p,
  .section-triathlon li {
    text-align: justify; 
    font-size: 1rem;
  }

}



.triathlon-heroL {
  margin: 40px 0;
  text-align: center;
}

.triathlon-heroL img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 250px;   /* taille max sur desktop */
  height: auto;       /* garde les proportions */
  border-radius: 12px;
  object-fit: contain;
}

.image-inline {
  margin: 30px 0 50px 0;
  text-align: center;
}

.image-inline img {
  width: 100%;
  max-width: 750px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}



/* ===== Bloc Contact Triathlon ===== */

.tri-contact {
  margin-top: 70px;
  padding: 40px 30px;
  text-align: center;
  background: #f4f1ea; /* ton clair élégant */
  border-top: 2px solid #b38b2d;
  border-radius: 6px;
}

.tri-contact h3 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
}

.tri-contact p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.tri-email {
  display: inline-block;
  max-width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d1b2a;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid #0d1b2a;
  border-radius: 30px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;

  /* IMPORTANT pour mobile */
  word-break: break-word;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.tri-email:hover {
  background-color: #b38b2d;
  color: white;
  border-color: #b38b2d;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */

@media screen and (max-width: 768px) {
  .tri-contact {
    padding: 30px 20px;
  }

  .tri-email {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

@media screen and (max-width: 480px) {
  .tri-email {
    width: 100%;
    border-radius: 12px; /* plus élégant en pleine largeur */
    padding: 14px;
  }
}