@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@600&display=swap');
@import url("https://grouope-j.fr/assets/css/fontawesome-all.min.css");

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Elements */
:root {
  color: #fff;
  font-size: 15pt;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.75em;
}

/* Display */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* Body */
body {
	line-height: 1;
	overflow-x: hidden; /* changed from overflow: hidden */
  }

/* Lists */
ol,
ul {
  list-style: none;
}

/* Quotes */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Links */
a {
  transition: border-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: inherit;
  outline: 0;
  text-decoration: none;
}

a:hover {
  border-color: transparent;
}

/* Icons */
.icon {
  text-decoration: none;
  position: relative;
}

.icon::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
}

.icon > .label {
  display: none;
}

.icon.solid::before {
  font-weight: 900;
}

.icon.brands::before {
  font-family: 'Font Awesome 5 Brands';
}

/* Wrapper animation */
@keyframes wrapper {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#wrapper {
	animation: wrapper 2s forwards;
	height: auto; /* changed from height: 100% to height: auto */
	left: 0;
	opacity: 0;
	position: relative; /* changed from position: fixed */
	top: 0;
	width: 100%;
  }


#bg {
  animation: bg 60s linear infinite;
  background: #21548f;
  background-repeat: repeat-x;
  background-size: 2250px auto;
  width: 6750px;
  height: 100%;
  left: 0;
  opacity: 1;
  position: fixed;
  top: 0;
}

/* Overlay animation */
@keyframes overlay {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#overlay {
  animation: overlay 1.5s 1.5s forwards;
  background: url("images/overlay-pattern.png") repeat top left, url("images/overlay.svg") no-repeat center center;
  background-size: auto, cover;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

/* Main */
#main {
	left: 0;
	position: relative; /* changed from position: fixed */
	text-align: center;
	top: 0;
	width: 100%;
  }

#main:before {
  content: '';
  display: inline-block;
  height: 100%;
  margin-right: 0;
  vertical-align: middle;
  width: 1px;
}



/* Header */
@keyframes header {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes nav-icons {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

#header {
  animation: header 1s 2.25s forwards;
  backface-visibility: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  position: relative;
  text-align: center;
  top: -1em;
  vertical-align: middle;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  padding-bottom: 80px; /* to make space for the bouncing image */
}

#header img {
  display: block;
  width: 60px;  /* définir la taille que vous voulez */
  height: auto;
  animation: bounce 2s infinite;
  bottom: 0;   
  position: absolute;
  left: 50%;            
  transform: translateX(-50%) translateY(0);
  padding-bottom: 10%;
}



#header h1 {
  font-size: 4.35em;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1em;
  
}

#header h2 {
  font-size: 1.5em;
  letter-spacing: -0.035em;
  line-height: 1em;
}

#header p {
  font-size: 1.25em;
  margin: 0.75em 2em 0.75em 2em;
  opacity: 0.9;
  font-weight: 600;
}

#header .highlight {
  font-size: 1.5em;
  color: #fff;
  opacity: 1;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
  40% {transform: translateX(-50%) translateY(-30px);}
  60% {transform: translateX(-50%) translateY(-15px);}
}



#header nav {
  margin: 1.5em 0 0 0;
}

#header nav li {
  animation: nav-icons 0.5s ease-in-out forwards;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  display: inline-block;
  height: 5.35em;
  line-height: 5.885em;
  opacity: 0;
  position: relative;
  top: 0;
  width: 5.35em;
}

#header nav li:nth-child(n) {
  animation-delay: calc((n - 1) * 0.25s + 2.5s);
}

#header nav a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  border: 0;
  display: inline-block;
}

#header nav a:before {
  transition: all 0.2s ease-in-out;
  border-radius: 100%;
  border: solid 1px #fff;
  display: block;
  font-size: 1.75em;
  height: 2.5em;
  line-height: 2.5em;
  position: relative;
  text-align: center;
  top: 0;
  width: 2.5em;
}

#header nav a:hover {
  font-size: 1.1em;
}

#header nav a:hover:before {
  background-color: rgba(255, 255, 255, 0.25);
}

#header nav a:active {
  font-size: 0.9em;
}

#header nav a:active:before {
  background-color: rgba(255, 255, 255, 0.5);
}

#header nav span {
  font-size: 0.65em;
  opacity: 0.75;
  position: absolute;
  bottom: 1em;
  left: 0;
  width: 100%;
}

/* make sure the bouncing image is not covering other content */
#header h1, #header p, #header nav {
  z-index: 1;
}

/* center the navigation horizontally */
#header nav {
  display: flex;
  justify-content: center;
}

/* center the navigation items */
#header nav ul {
  display: flex;
  justify-content: center;
}

/* About section */
#about {
  padding: 1em;
  color: #fff;
  text-align: center;
  background-color:#21548f;
}

#about h2 {
  font-size: 2em;
  letter-spacing: -0.035em;
  line-height: 1em;
  margin: 0.75em 0.5em 1em 0.5em;
}

#about p {
  font-size: 1.1em;
  line-height: 1.2em;
  margin: 0.75em 5% 0.25em 5%;
  opacity: 0.85;
  text-align:justify;  
  padding: 0.5em 5% 0.5em 5%; /* C<ette ligne ajoute un peu de rembourrage */
}

#about strong {
  font-weight: 600;
}


#partners {
  text-align: center;
  padding: 1em 0 1em 0;
  
}

#partners h2 {
  font-size: 2em;
  margin-bottom: 20px;
}


.partners-gallery {
  background-color:#6e91b9be;
  width: 100%;
  
}

.partners-gallery div {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 7px 20px 7px 20px;
  height: auto;

}

.partners-gallery img {
  max-width: 250px;
  max-height: 70px;
  height: auto;
  object-fit: contain;
  margin: auto;  
}


#key-figures {
  text-align: center;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  background: #21548f;
}

#key-figures h2 {
  font-size: 2em;
  margin-bottom: 20px;
  
}

.figures-gallery {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.figure {
  width: 200px;
  margin: 20px;
}

.figure h3 {
  font-size: 1.3em;
  font-weight: 600;
}

.figure h3 span {
  display: block;
  font-size: 2em;
  color: #f7861c;  /* Change this to match your color theme */
}



/* Projects section */
#projects {
  padding: 2em;
  color: #fff;
  text-align: center;
}

#projects h2 {
  font-size: 2em;
  letter-spacing: -0.035em;
  line-height: 1em;
  margin: 0.75em 0.5em 1em 0.5em;
}

.project {
  width: 100%;
  max-width: 600px;
  margin: 1em;
  padding-left: 20px;
  padding-right: 20px;
}

.project img {
  border-radius: 15px; /* Cette ligne arrondit les bords de l'image*/
  width: auto;
  height: 100%;
  max-height: 500px;

}

.project-description {
  margin-top: 0.5em;
  background: #21548fc7; /* Cette ligne ajoute un arrière-plan gris transparent */
  
  padding: 20px; /* Cette ligne ajoute un peu de rembourrage */
}

#projects h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
}

#projects p {
  font-size: 1.1em;
  line-height: 1.2em;
  margin: 0.75em 0 0.25em 0;
  opacity: 0.85;
  text-align:justify;
}

#projects strong {
  font-weight: 600;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.project-slider .slide {
  height: 400px; /* Choisissez la hauteur qui convient le mieux à votre design */
  overflow: hidden; /* Cache tout ce qui dépasse du conteneur */
}

.project-slider .slide img {
  height: 100%;
  width: auto;
  object-fit: cover; /* L'image couvrira tout le conteneur tout en conservant ses proportions */
}


/* Partnership section */
#partnership {
  padding: 1em;
  color: #fff;
  text-align: center;
  background-color:#21548f;
}

#partnership h2 {
  font-size: 2em;
  letter-spacing: -0.035em;
  line-height: 1em;
  margin: 0.75em 0.5em 1em 0.5em;
}

#partnership p {
  font-size: 1.1em;
  line-height: 1.2em;
  margin: 0.75em 5% 0.25em 5%;
  opacity: 0.85;
  text-align:justify;  
  padding: 0.5em 5% 0.5em 5%; /* C<ette ligne ajoute un peu de rembourrage */
}

#partnership strong {
  font-weight: 600;
  font-size: 1.5em;
}

/* Investors section */
#investors {
  padding: 1em;
  color: #fff;
  text-align: center;
  background-color: #6e91b9be;
}

#investors h2 {
  font-size: 2em;
  letter-spacing: -0.035em;
  line-height: 1em;
  margin: 0.75em 0.5em 1em 0.5em;
}

#investors p {
  font-size: 1.1em;
  line-height: 1.2em;
  margin: 0.75em 5% 0.25em 5%;
  opacity: 0.85;
  text-align: justify;  
  padding: 0.5em 5% 0.5em 5%; /* Cette ligne ajoute un peu de rembourrage */
}

#investors strong {
  font-weight: 600;
  font-size: 1.5em;
}





/* Footer */
#footer {
  position: relative; /* Changed from position: absolute */
  bottom: 0;
  width: 100%;
  padding: 20px 0; /* Added padding for spacing */
  text-align: center;
  background-color: #21548f; /* Or whatever color you prefer */
}

#footer nav {
  margin: 1.5em 0 1.5em 0;
}

#footer nav li {
  animation: nav-icons 0.5s ease-in-out forwards;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  display: inline-block;
  height: 5.35em;
  line-height: 5.885em;
  opacity: 0;
  position: relative;
  top: 0;
  width: 5.35em;
}

#footer nav li:nth-child(n) {
  animation-delay: calc((n - 1) * 0.25s + 2.5s);
}

#footer nav a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  border: 0;
  display: inline-block;
}

#footer nav a:before {
  transition: all 0.2s ease-in-out;
  border-radius: 100%;
  border: solid 1px #fff;
  display: block;
  font-size: 1.75em;
  height: 2.5em;
  line-height: 2.5em;
  position: relative;
  text-align: center;
  top: 0;
  width: 2.5em;
}

#footer nav a:hover {
  font-size: 1.1em;
}

#footer nav a:hover:before {
  background-color: rgba(255, 255, 255, 0.25);
}

#footer nav a:active {
  font-size: 0.9em;
}

#footer nav a:active:before {
  background-color: rgba(255, 255, 255, 0.5);
}

#footer nav span {
  font-size: 0.65em;
  opacity: 0.75;
  position: absolute;
  bottom: 1em;
  left: 0;
  width: 100%;
}

#footer .copyright {
  font-size: 0.9em;
  color: #fff;
}




/* Media Queries */

/* Lorsque la largeur de l'écran est inférieure à 1024px */
@media (max-width: 1024px) {
  .partners-gallery img {
    max-width: 600px; /* ajustez cette valeur en fonction de vos besoins */
  }
  .partners-gallery div {
    
    margin: 6px 13px 6px 13px;
  }
}

/* Lorsque la largeur de l'écran est inférieure à 600px */
@media (max-width: 600px) {
  .partners-gallery img {
    max-width: 400px; /* ajustez cette valeur en fonction de vos besoins */
  }
  .partners-gallery div {
    
    margin: 4px 12px 4px 12px;
  }
}

/* Lorsque la largeur de l'écran est inférieure à 480px */
@media (max-width: 480px) {
  .partners-gallery img {
    max-width: 300px; /* ajustez cette valeur en fonction de vos besoins */  /* ajustez cette valeur en fonction de vos besoins */
  }
}


/* Wide */
@media screen and (max-width: 1680px) {
  body,
  input,
  select,
  textarea {
    font-size: 13pt;
  }
  #bg {
    background-size: 1500px auto;
    width: 4500px;
  }
}

/* Normal */
@media screen and (max-width: 1280px) {
  body,
  input,
  select,
  textarea {
    font-size: 12pt;
  }
  #bg {
    background-size: 750px auto;
    width: 2250px;
  }
}

/* Mobile */
@media screen and (max-width: 736px) {
  body {
    min-width: 320px;
  }
  body,
  input,
  select,
  textarea {
    font-size: 11pt;
  }
  #bg {
    background-size: 300px auto;
    width: 900px;
  }
  #header h1 {
    font-size: 2.5em;
  }
  #header h2 {
    font-size: 0.5em;
  }
  #header p {
    font-size: 1em;
  }
  #header nav {
    font-size: 1em;
  }
  #header nav a:hover {
    font-size: 1em;
  }
  #header nav a:active {
    font-size: 1em;
  }
  #about p {
    font-size: 1em;
  }
  #about h2 {
    font-size: 1.5em;
  }
  #projects p {
    font-size: 1em;
  }
  #projects h2 {
    font-size: 1.5em;
  }
  #partnership p {
    font-size: 1em;
  }
  #partnership h2 {
    font-size: 1.5em;
  }
  #partnership strong {
    font-size: 1.2em;
  }
  #investors p {
    font-size: 1em;
  }
  #investors h2 {
    font-size: 1.5em;
  }
  #investors strong {
    font-size: 1.2em;
  }
  

}

/* Mobile (Portrait) */
@media screen and (max-width: 480px) {
  #bg {
    background-size: 412.5px auto;
    width: 1237.5px;
  }
  #header nav {
    padding: 0 1em;
  }
  #header img {
    padding-bottom: 25%;
  }
}
