:root {
  --pmr-red: #91102A;
  --pmr-dark: #222;
  --pmr-light: #f9f9f9;
  --pmr-gray: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow: visible;
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  display: block;
  font-family: 'Roboto', sans-serif;
  background-color: var(--pmr-light);
  height: 100%;
  margin: 0;
  color: var(--pmr-dark);
}

footer {
  width: 100%;
  padding: 1.5rem 1rem;
  margin-top: auto;
  background-color: var(--pmr-light);
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 20px;
  text-align: center;
  overflow-x: hidden;
}

p {
  text-align: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: 'Roboto', sans-serif;
  color: var(--pmr-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 1rem;
  color: var(--pmr-red);
}

h2.soustitre {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.nav-css, .footer-css {
  width: 100%;
  position: relative;
}

#navBar {
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: 5rem;
}

#navDiv {
  width: 100%;
  height: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

#navDiv .nav_div {
  padding: 0 20px;
  text-align: center;
}

.page_pmr {
  text-decoration: none;
  color: white;
  margin-right: 1rem;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: 0.3s;
}

.page_pmr:hover {
  color: var(--pmr-gray);
}

.hr { 
  border: solid 0.75rem var(--pmr-red);
}

.gallerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
  justify-items: center;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.gallerie-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  background-color: white;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallerie-img:hover {
  transform: scale(1.05);
}

.success-msg {
  color: green;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
}

.error-msg {
  color: red;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 1rem;
  width: 100%;
}

.post {
  background-color: var(--pmr-light);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {
  .main-content {
    padding: 10px;
    max-width: 768px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  p, h1, h2 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .gallerie {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallerie-img {
    max-width: 100%;
    height: auto;
  }

  .feed {
    max-width: 100%;
    padding: 10px;
  }

  .post {
    font-size: 14px;
    padding: 1rem;
  }
}

@media (max-width: 990px) {
  .main-content {
    padding: 10px;
  }

  p {
    font-size: 20px;
  }

  .competitions_ffr_widget {
    max-width: 100%;
  }

  .gallerie {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallerie-img {
    max-width: 100%;
    height: auto;
  }
}
