* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  :root {
    --text-fonts : "Figtree", serif;
    --navbar-text-color: #000;
    --body-background-color: #fff;
    --text-color: #000;
    --navbar-text-color: #000;
    --blue-main: #0057ac; /*coleur de l'udem*/
    --blue-light:#e5f0f8;
    --blue-dark:#0b113a;
    --vert: #52b782;

  }
 
  body {
    font-family: var(--text-fonts);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
    background: var(--body-background-color);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: var(--navbar-text-color);
  }

  a:hover{
    cursor:pointer;
  }

  ul {
  list-style: none;
  }
  
  img {
    max-width: 100%;
  }
  
  figcaption {
    font-size: 14px;
    margin-top: 8px;
  }

  strong {
    font-weight: bold;
  }

  h1 {
    font-weight: normal;
    font-size: 45px;
    text-align:left;
  }

.text-uneven{
  padding-left:300px; 
}

  /* ==================================================================================== */
  /* Utility Calsses */
  /* ==================================================================================== */
  .container {
    max-width: 100%;
    margin: 0 auto;
  }




  .topnav {
    overflow: hidden;
    background-color: var(--blue-main);
    height:78px;
  }
  
  .topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 25px 30px;
    /* padding: 42px 30px; */
    text-decoration: none;
    font-size: 1.2em;
  }
  
  .topnav a:hover {
    background-color: var(--blue-light);
    color: var(--blue-dark);
  }
  
  .topnav a.active {
    /* background-color: #04AA6D; */
    padding: 15px 50px;
    /* color: white; */
  }

  .topnav a.active:hover {
    background-color: var(--blue-main);
    /* color: black; */
  }
  
  .topnav-right {
    float: right;
    height:80px;
  }



  .topnav-mobile {
    display:none;
    text-align: center;
    overflow: hidden;
    background-color: var(--blue-main);
  }
  
  .topnav-mobile a {
    color: #f2f2f2;
    text-align: center;
    padding:5px 10px;
    text-decoration: none;
    font-size: 1.2em;
  }
  
  .topnav-mobile a:hover {
    background-color: var(--blue-light);
    color: var(--blue-dark);
  }


/* ==================================================================================== */
/* hamburger button */
/* ==================================================================================== */
.hamburger-button{
  display:none;
  background: var(--blue-main);  
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1000;
  position: fixed;
  right:11px;
  top: 13px;
}

.hamburger-button .hamburger-line{
  width: 24px;
  height: 3px;
  background: white;
  margin: 4px 0;
  z-index: 1000;
}

.mobile-menu{
  position: fixed;
  top: 0;
  right: -300px;
  width: 150px;
  height: 100%;
  z-index: 999;
  background-color: white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  color: #000;
  transition: right 0.3s ease-in-out;
}

.mobile-menu.active {
  right: 0px;
}

.mobile-menu ul {
  margin-top: 100px;
  padding-right: 10px;
  padding-left: 20px;
}
.mobile-menu ul li {
  margin: 10px 0;
}

.mobile-menu ul li a {
  font-size: 20px;
  transition: 0.3s;
  color:var(--blue-dark);
}



.mission-container{
  max-width: 75vw;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
}


.mission-container button{
  background-color: var(--blue-main);
  color:#fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mission-container button:hover{
  background-color: var(--blue-dark);
  color: #ffffff;
}

.mission-container button a{
  color: #fff;
}

.mission-container .intro{
  /* padding:150px 0 150px 0; */
  text-align:center; color:#fff; font-size:30px;
  /* text-align:center; color:var(--blue-main); font-size:30px; */
  text-shadow: 2px 3px 5px #000000;
}

.mission-container p{
  text-align:left; font-size:1.2em; color:var(--blue-dark);
}


.footer{
  text-align: center;
  position: relative;
  background-color: var(--blue-main);
}

.footer-right{
  /* border: 1px solid black; */
    position: absolute;
    right: 2%;
    top: 32%;
}

.footer-logo{
  width:20%; padding: 10px;
}


.banner{
  width: 100vw;
  /* background-image: url('../files/banner.jpg'); */
  background-color: var(--blue-dark);
  height:20vh;
  text-align: center;
  position: relative;

}

.banner img{
  max-height: 15vh;
  width: auto;
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
}


.header-container{
  max-width: 75vw;
  margin: 0 auto;
  text-align: center;
}

.header-container .main-menu {
  padding: 10px 0;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.header-container .main-menu ul {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Padding left only and centering right so that the last item is flush with the container */
.header-container .main-menu ul li a {
  padding: 0 10px;
  display: block;
  transition: 0.5s;
}

/* Color change on hover */
.header-container ul li a:hover {
  background-color: #0057ac;
  color: #fff; /* Change the hover color to something better */
}

.header-container .logo img {
  padding-left: 20px;
  width: 100px;
  height: auto;
}

.activites-container{
  position:relative;
  max-width: 75vw;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
}


.logo-bienvenue{
  width:40%;
}

.activites-container .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-row-gap: 0;
  grid-column-gap: 10px;
  grid-template-areas: 
    "col1 col2";
}

.col1 {
  grid-area: col1;
  /* filter: grayscale(100%); */
  width: 100%;

}

.col2 {
  grid-area: col2;
  /* filter: grayscale(100%); */
  width: 100%;

}

.col2 p {
  font-size: 1.2em;
}

/* Contact form */
input[type=text], select, textarea {
  font-family: var(--text-fonts);
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  /* border-radius: 4px;  */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: var(--blue-main);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: var(--blue-dark);
  color: #fff;
}

/* Add a background color and some padding around the form */
.contact-form .container-contact {
  /* border-radius: 5px; */
  border-color: var(--blue-dark);
  /* border-style: solid; */
  background-color: var(--blue-light);
  padding: 20px;
  text-align: center;
}

.container-contact {
  max-width: 800px;
  margin: 0 auto;
  padding-right: 10px;
  padding-left: 10px;
}

.contact-header-container{
  max-width: 75vw;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.newsletter-container{
  max-width: 75vw;
  margin: 0 auto;
  text-align: center;
  color:#fff;
  padding:20px 0 30px 0;
}

.newsletter-container button{
  background-color: var(--blue-main);
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter-container button:hover{
  background-color: var(--blue-light);
  color: #000000;
}

.activites-container button{
  background-color: var(--blue-main);
  color:#fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.activites-container button:hover{
  background-color: var(--blue-dark);
  color: #ffffff;
}

.activites-container button a{
  color: #fff;
}


.membres-container{
  max-width: 75vw;
  margin: 0 auto;
  text-align: center;
  color:var(--blue-dark);
  padding:20px 0 30px 0;
}



.gallery-team{
  padding-top: 10px;
  padding-bottom: 10px;
}

.gallery-team .container {
  display: flex;
  flex-flow: row wrap;
}

.gallery-team .container::after {
  content: " ";
  flex: auto;
}

.gallery-team .image {
  flex-basis: 33.3333%;
  min-width: 0;
  text-align: center;
  padding:10px;
} 

/* align caption box under figure*/
.gallery-team figure{
  display: inline-block;
  padding: 5px;
}

/* make sure that the max-width matches the width of the figure from .gallery figure img {} */
.gallery-team figure figcaption { 
  margin-top: 0px;
  max-width: 300px;
}

.gallery-team figure figcaption p {  
  text-align: left;
  word-wrap: break-word;
}

.gallery-team figure img {
  width: 250px;
  aspect-ratio: 1/1;
  border-radius: 0;
  object-fit:cover;
  box-shadow: 10px 5px 5px rgb(151, 151, 151);
  border-radius: 50%;

}


/* .cofounder-name{
  text-align:left; font-weight:bold; font-size:1.8em;
}

.cofounder-role{
  text-align:left; font-size:1.1em;
} */

.logo-2{
  position:absolute;
  max-width:200px;
  top:20%; 
  right:10%;
}

.activites-container h1{
  font-size: 2.5em;
}

.p-dialoguer{
  text-align:left; width:80%;
}



.gallery-activites{
  padding-top: 10px;
  padding-bottom: 10px;
}

.gallery-activites .container {
  display: flex;
  flex-flow: row wrap;
}

.gallery-activites .container::after {
  content: " ";
  flex: auto;
}

.gallery-activites .image {
  flex-basis: 33.3333%;
  min-width: 0;
  text-align: center;
  padding:10px;
} 

/* align caption box under figure*/
.gallery-activites figure{
  display: inline-block;
  padding: 5px;
}

.gallery-activites figure:hover{
  cursor: pointer;
    filter: none;
    -webkit-filter: grayscale(0);
    /* filter: hue-rotate(360deg); */
    -webkit-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
    opacity: 0.4;
    transform: 1;
    filter:brightness(1);
}
/* make sure that the max-width matches the width of the figure from .gallery figure img {} */
.gallery-activites figure figcaption { 
  margin-top: 0px;
  max-width: 300px;
}

.gallery-activites figure figcaption p {  
  text-align: left;
  word-wrap: break-word;
}

.gallery-activites figure img {
  width: 85%;
  object-fit:cover;
  box-shadow: 10px 5px 5px rgb(151, 151, 151);
  border: solid #e2e2e2 1px;

}

/* .gallery-activites figure img:hover {
  filter: none;
  -webkit-filter: grayscale(0);
  -webkit-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  opacity: 50%;
} */

.banniere_mobile{
   display: none;
}


.activite-close{
  position: absolute;
  top: 0;
  right: 0;
}

.activite-close:hover{
  cursor:pointer;
}



    .member-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      justify-items: center;
    }

    @media (max-width: 900px) {
      .member-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .member-grid {
        grid-template-columns: 1fr;
      }
    }

    .member-card {
      /* background-color: #fff; */
      /* border: 1px solid #ddd; */
      /* padding: 1.2rem 1.5rem; */
      /* border-radius: 8px; */
      width: 100%;
      max-width: 300px;
      /* box-shadow: 0 2px 6px rgba(0,0,0,0.05); */
      text-align: left;
      /* transition: transform 0.2s ease; */
    }

    .member-name {
      font-size: 1.3em;
      font-weight: bold;
      color: #ffffff;
    }

    .member-role {
      font-size: 1.1em;
      color: #ffffff;
      margin-top: 0.3rem;
    }

    .cofounder .member-name {
      font-size: 1.8em;
    }

    .cofounder .member-role {
      font-size: 1.1em;
      color: #ffffff;
      /* font-weight: bold; */
    }



@media screen and (max-width:1080px) {
  .logo-2{
    /* position:relative;
    transform: translateX(7.5%); */
    display:none;
  }
}

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

  h1 {
    font-size: 50px;
    text-align:center;
  }
  
  .text-uneven {
    padding-left: 0;
  }

 .activites-container .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-row-gap: 0;
    grid-column-gap: 10px;
    grid-template-areas: 
      "col1"
      "col2";
  }


  .gallery-team .image{
    flex-basis: 100%;
  }

  .cofounder-name{
    font-size:1.2em;
  }
  
  .cofounder-role{
    font-size:1em;
  }
  
  .footer-right{
      position: relative;
      text-align: center;
  }

  .topnav{
    display:none;
  }
  .topnav-mobile{
    display: block;
  }
  
  .hamburger-button{
    display: block;
  }

  .mission-container{
    max-width: 90vw;
    padding: 10px 0;
  }

  .mission-container .intro{
    font-size: 25px;
  }

  .mission-container p{
    font-size: 1.2em;
  }


  .membres-container{
    max-width: 90vw;
    padding: 10px 0;
  }

  .membres-container .intro{
    font-size: 25px;
  }

  .footer-logo{
      width:50%; padding: 5px;
  }

  .p-dialoguer{
    width:100%;
  }

  .col2 p {
    font-size: 1em;
  }

  .gallery-activites .image {
    flex-basis: 100%;
  } 

  .activites-container h1{
    font-size: 1.5em;
  }

  .banniere_pc{
    display: none;
  }

.banniere_mobile{
  display: block;
  }

  .gallery-activites .container {
    display: grid;
  }
  .gallery-activites .container p{
    text-align:center;
  }

}

@media screen and (max-width:550px) {
  h1 {
    font-size: 40px;
  }
  .mission-container p{
    font-size:1.2em;
}

.logo-bienvenue{
  width:70%;
}

.activite-close{
  left: 0;
}
.gallery-activites .container {
  display: grid;
}
.gallery-activites .container p{ 
  text-align:center;
}
}