:root{
    --separator: #ddd;
    --font: "Open Sans", Helvetica, sans-serif;
    --fontRegular : "Open Sans regular", Helvetica, sans-serif;
    --VertFonce: #15461f;
    --VertClair: #9bdb8e;
    --Texte: #e3e3e3;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
}

@font-face {
	font-family: "Open Sans";
  font-style:normal;
  src: url("/media/themes/opensans.ttf");
  font-display: swap;
}

body {
  font-style:normal;
  font-family: var(--font);
	font-size: 1.5em;
  font-weight: lighter;
  line-height: 1.5;
  color: var(--Texte);
  margin: 1em auto;
  background-color: var(--VertFonce);
	background-image: url("/media/themes/../themes/geo80.png");
  max-width: 80%;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--fontRegular);
  font-weight: bold;
}

hr {
	height: 1px;
	background: var(--separator);
	border: 0;
}

a {
	color: var(--VertClair);
	text-decoration: none;
}

a:hover {
	color: var(--VertClair);
	text-decoration: underline;
}

details[open] summary ~ * {
	animation: open 0.5s ease-in-out;
}

details:hover {
	background-color: rgba(155, 219, 142, .2);
  cursor: pointer;
}

details img {
	padding: 1%;
	width: 30%;
}

.task-list{
  padding: 0;
}

.task-list-item{
  list-style: none;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2vh;
  justify-content: center;
}
.photo {
  flex: 1 1 30vh; /* Largeur de base à 30vw, mais s'adapte */
  max-width: 50vh; /* Évite que les images deviennent trop grandes */
  max-height: 50vh;
  object-fit: cover;
  border-radius: 1vh;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.photo:hover {
  transform: scale(1.02);
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-in-out;
}
.modal img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 1vh;
  transition: transform 0.3s ease-in-out;
}
.close-modal {
  position: absolute;
  top: 2vh;
  right: 2vw;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5vh 1vw;
  border-radius: 50%;
}
.close-modal:hover {
  background: rgba(255, 255, 255, 0.5);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  width: 100vw;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.nav-button {
  background: var(--VertFonce);
  color: #fff;
  border: none;
  padding: 1vh 2vw;
  font-size: 2vh;
  cursor: pointer;
}
.nav-button:hover {
  background-color: var(--VertClair);
}
#modalImage{
  height: auto;
  width: auto;
}