/*a propos styling*/
:root{
  --accent-dark:#c22b86;
  --white: #ffffff;
  --overlay: rgba(18,18,30,0.55);
  --muted: rgba(255,255,255,0.85);
  --nav-height:72px;
  --text: #333333;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: Arial, sans-serif;
  color:var(--white);
  background:#111;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.hero-about {
  position: relative;
  background: url('') center/cover no-repeat;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-about::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  height: 100%;
}

.hero-about h1 {
  position: relative;
  font-size: 2rem;
  font-weight: 800;
  z-index: 1;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

section {
  margin-bottom: 60px;
  animation: fadeIn 1s ease both;
}

section h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  border-left: 4px solid #7cd0ff;
  padding: 10px;
  font-weight: 700;
  transition: transform 2s;
  font-family: Arial, sans-serif;
  margin-top: 20px;
}
section h2:hover {
  animation: slideIn 2s;
}


section p {
  color: var(--muted, #e0e0e0);
  font-size: 1.2rem;
  line-height: 1.45; /* équilibré, lisible */
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: 0; /* remet à zéro pour éviter les trous */
  border-radius: 30px;
  padding: 16px;
  transition: transform 2s;
  font-family: Arial, sans-serif;
}


section p:hover {
  animation: fadeIn 2s;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes slideIn {
  0% {
    transform: translate(-100%);
  }
  100% {
    transform: translateX(0);
  }
}


/* ---------------------- */
/* 📱 RESPONSIVE DESIGN   */
/* ---------------------- */

/* Tablettes */
@media (max-width: 992px) {
  main {
    padding: 40px 20px;
  }

  section h2 {
    font-size: 1.2rem;
  }

    section p {
      font-size: 1.1rem;
      line-height: 1.55;
      padding: 14px;
      text-align: justify;
      text-justify: inter-word;
      hyphens: auto;
    }

  .hero-about h1 {
    font-size: 1.8rem;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  .hero-about {
    min-height: 30vh;
    padding: 20px;
  }

  .hero-about h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  main {
    padding: 30px 16px;
  }

  section {
    margin-bottom: 40px;
  }

  section h2 {
    font-size: 1.2rem;
    padding-left: 8px;
    word-spacing: 0.1em;
  }

    section p {
      font-size: 1rem;
      line-height: 1.45;
      padding: 12px;
      text-align: left;  
      hyphens: auto;
      overflow-wrap: break-word;
    }
  
  @media (max-width: 480px) {
    section p {
      font-size: 0.95rem;
      line-height: 1.45;
      padding: 10px;
      text-align: left;
      hyphens: auto;
      overflow-wrap: break-word;
    }
  }

  ul li {
    margin-left: 16px;
    word-spacing: 0.1em;
  }

  .divider {
    width: 60px;
    height: 3px;
  }
}

/* Styles pour l'en tete */
.header-section {
  position: relative;
  padding: 0;
  margin: 0;
  margin-top: -35px;
}

.image-container {
  position: relative;
  width: 100%;
  height: 300px; /* Hauteur de l'image */
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
  .image-container {
    height: 100%; /* Réduire la hauteur de l'image sur mobile */
  }

}

@media (max-width: 480px) {
  .image-container {
    height: 80%; /* Réduire encore la hauteur de l'image sur les petits écrans */
  }
}
