@font-face {
  font-family: "Vollkorn";
  src:url("./Vollkorn/static/Vollkorn-Regular.ttf");
}

@font-face {
  font-family: "Vollkorn-bold";
  src:url("./Vollkorn/static/Vollkorn-Bold.ttf");
}


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

img {
  max-inline-size: 100%;
}

body {
    font-family: 'Vollkorn', serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
}




header {
    background-color: #3b739a;
    color: white;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

a {
  color:#d31d1d
}

a:hover {
  color:#a00e0e ; 
  font-weight : bold ; 
}



main {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

section {
    padding: 2rem;
    border: 1px solid #bd4848;
    border-radius: 8px;
}


p {
    text-align : justify;

}

/* Photo Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  grid-auto-rows: 12.5rem;
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.gallery figure {
  /* container-type: inline-size; */
  container: figure / inline-size;
  overflow: hidden;

  display: grid;
  /* grid-template-columns: 1fr; */
  /* grid-template-rows: 1fr; */

  /*
    Because 1fr = minmax(auto, 1fr),
    to prevent the grid blowout,
    set the minimum to zero.
  */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.gallery img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;

  /* grid-row: 1 / -1; */
  /* grid-column: 1 / -1; */
  grid-area: 1 / 1 / -1 / -1;

  transition: scale 1s ease-in-out;
}

.gallery figure:hover img {
  scale: 1.125;
}




.gallery figcaption {
  grid-area: 1 / 1 / -1 / -1;
  align-self: end;
  z-index: 1;

  padding: 1em 15% 1em 1em;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.3;
  background: rgba(145, 63, 63, 0.65);
  display: none;

}






.gallery figcaption div {
  
}

@container figure (width > 20rem) {
  .gallery figcaption {
    display: block;
  }
}

.gallery figcaption h3 {
  font-size: 1.0625rem;
}

.gallery figcaption p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (width > 600px) {
  .gallery figure:nth-child(1) {
    grid-area: span 2 / span 2;
  }

  .gallery figure:nth-child(4n + 1) {
    grid-row: span 2;
  }

  .gallery figure:nth-child(4n + 2) {
    grid-column: span 2;
  }
}



.video-container {
  display: flex;
  gap: 10px; /* espace entre les vidéos, optionnel */
}

.video-container video {
  width: 50%;
  height: auto;
}



.active {
    background-color: #9e0000;
}

.centrer {
  text-align: center;
}


.important {
  font-weight: bold;
  border: 2px solid black ;
  margin: 1px;
  padding: 10px;
}

.citation {
  border: 2px solid black ;
  margin: 1px;
  padding: 10px;
}

.bold {
  font-family: "Vollkorn-bold";
}

.i {
  font-style: italic;
}

.definition {
  font-weight: bold;
  text-decoration-line: underline;
}

.boxed {



}

.container {
  display: flex;
  justify-content: center;
  vertical-align: top;
 }









 /* The navigation menu */
.navbar {
  overflow: hidden;
  background-color: #333;

}

/* Navigation links */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 14px 16px;
  text-decoration: none;
  align-items: center;

}


/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}



/* Add a red background color to navigation links on hover */
.navbar a:hover, .subnav:hover .subnavbtn {
  background-color: #bd1c1c;
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: #d43f3f;
  width: 100%;
  z-index: 1;
}

/* Style the subnav links */
.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

/* Add a grey background color on hover */
.subnav-content a:hover {
  background-color: #ececec;
  color: black;
}


.subnav-content  a.aconstruire {
  background-color: #685d5d;
  color: black;
}

/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
} 


/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}


.dropdown .dropbtn:hover {
    background-color: #bd1c1c;

}


.dropdown .dropbtn.aconstruire {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: #685d5d;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}


/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ebd2d2;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}



