/*--------- COLORS ---------*/
:root {
  --black: #0d0d0d;
  --text-color1: #fff;
  --green: #80ff80;
}

/* -------------- GENERAL -------------- */
* {
	margin:0;
	padding:0;
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
	text-decoration: none; 
	list-style: none;
}

.syne {
  font-family: "Syne", sans-serif;
  font-optical-sizing: auto;
  font-weight: 730;
  font-style: normal;
}

html {
  height: 100%;
}

a {
  color: var(--text-color1);
}

a:is(:link, :active, :visited).active{
  color: var(--green);
}

#h2-title {
  text-align: center;
  margin-top: 15px;
  font-size: 200%;
}

body {
  background-color: var(--black);
  color: var(--text-color1);
  /* ci-dessous codes sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative; /* body::after darken background img */
}

/*background img*/
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: url('../imgs/drone.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* dark background */
body::after {
  content: ''; 
  position: absolute;
  background: var(--black);
  inset: 0;
  z-index: -1;
  opacity: 0.7;
}

/* 2160px / 16px = 135em */
@media (max-width: 135em) {
  html, .lang-button {
    font-size: 100%;
  }
}

/* 800px / 16px = 50em */
@media (max-width: 50em) {
  html, .lang-button {
    font-size: 95%;
  }
}

/* 600px / 16px = 37.5em */
@media (max-width: 37.5em) {
  html, .lang-button{
    font-size: 90%;
  }
}

/* -------------- HOME PAGE -------------- */
.hero {
	min-height: 100vh;
	background-image: linear-gradient(rgba(10,3,15,0.3),rgba(10,3, 15,0.3));
	position: relative;
	padding: 0 5%;
	display: flex;
	align-items: center;
	justify-content: center;
  overflow: hidden;
}

.back-video {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1; 
  top: 50%; /* rend la video responsive */
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ci-dessous filtre obscur */
.home-splash {
  overflow: hidden;
  position: relative;
}

.home-splash::after {
  content: ''; 
  position: absolute;
  background: var(--black);
  inset: 0;
  z-index: -1;
  opacity: 0.1;
}
/* filtre obscur fin */

/* centre video dans la page */
@media (min-aspect-ratio: 16/9) {
.back-video {
  width: 100%;
  height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
.back-video {
  width: auto;
  height: 100%;
  }
}

@media screen and (max-width: 429px) {
.back-video {
  display: none;
  }
}

.home-lang-container {
  position: absolute;
  top: 0;
  padding-top: 15px;
  height: 50px;
}

.lang-button {
  background: none;
  color: var(--text-color1);
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.lang-button:hover {
  color: var(--green);
}

.lang-button:focus{
  color: var(--green);
}

.home-social-links {
	width: 100%;
	position: absolute;
	bottom: 5px;
	display: flex;
	justify-content: center;
  gap: 35px;
}

.social-icon {
  transition: 0.2s;
  font-size: 120%;
  padding-bottom: 10px;
}

.social-icon:hover {
  transform: scale(1.2);
  opacity: 1;
  color: var(--green);
}

.btn {
  cursor: pointer;
  position: relative;
  padding: 0.5em 1.5em; 
  font-size: 1.25rem; 
  font-weight: 400;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center; 
  background: transparent;
  color: var(--green);
  transition: all 100ms;
  overflow: hidden;
  height: 3em; 
  width: 10em;
}

.left-span,
.right-span {
  border-radius: 4px;
  position: absolute;
  height: 100%; 
  width: 1em; 
  border-top: 0.125em solid var(--text-color1); 
  border-bottom: 0.125em solid var(--text-color1);
  transition: all 500ms;
}

.left-span {
  left: 0;
  border-left: 0.125em solid var(--text-color1);
}

.right-span {
  right: 0;
  border-right: 0.125em solid var(--text-color1);
}

.text-btn {
  position: absolute;
  transform: translateX(0);
  width: 70%; 
  transition: all 200ms;
}

.hidden-text-btn {
  position: absolute;
  transform: translateX(100%);
  opacity: 0;
  transition: all 200ms;
}

.btn:hover .text-btn {
  transform: translateX(-100%);
  opacity: 0;
}

.btn:hover .hidden-text-btn {
  transform: translateX(0);
  opacity: 1;
}

.btn:hover .right-span,
.btn:hover .left-span {
  width: 100%;
}

/* --------------------HEADER-------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: none;
  z-index: 3;
  list-style-type: none;
  padding: 0 35px 0 35px;
  transition: background-color 0.5s ease;
}

.logo {
  height: 50px;
  transition: .5s;
  opacity: 0.8;
}

.logo:hover {
  filter: grayscale(60%);
  transform: scale(1.2);
  transition: all .5s;
  opacity: 1;
}

@media (max-width: 901px) {
.logo {
  height: 40px; 
  position: absolute;
  top: 20px;
  z-index: 2; 
  }
}

/* --------------------NAVBAR-------------------- */
/*burger menu*/
#checkbox {
  display: none;
}

.toggle {
  position: relative;
  width: 31px;
  height: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition-duration: .5s;
  z-index: 3;
  display: none;
  float: right;
}

.bars {
  width: 100%;
  height: 4px;
  background-color: var(--green);
  border-radius: 3px;
  opacity: 1;
}

#bar1, #bar3 {
  width: 100%;
}

#checkbox:checked + .toggle .bars {
  position: absolute;
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar2 {
  transform: scaleX(0);
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar1 {
  width: 100%;
  transform: rotate(45deg);
  transition-duration: .5s;
}

#checkbox:checked + .toggle #bar3 {
  width: 100%;
  transform: rotate(-45deg);
  transition-duration: .5s;
}

#checkbox:checked + .toggle {
  transition-duration: .5s;
  transform: rotate(180deg);
}

@media (prefers-color-scheme: dark) {
  .bars {
    background-color: var(--green); 
  }
}

@media screen and (max-width: 901px) {
.toggle {
  display: flex;
  }
}
/*burger menu fin*/
.menu {
  list-style-type: none;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.menu li {
  margin: 15px;
}

.menu li a {
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.menu li a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px; 
  background-color: var(--text-color1);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;   
}

.menu li a:hover::after {
  transform: scaleX(1);
}

.menu li a ion-icon {
  margin-left: 5px; 
  font-size: 1.2em;
}

.lang-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media screen and (max-width: 901px) {
.menu {
  display: none;
  flex-direction: column;
  background-color: var(--black);
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  }
.menu li a, .lang-buttons {
  padding: 10px 16px;
  text-decoration: none;
  font-size: 20px;
  display: block;
  transition: 0.3s;
  text-align: center;
  }
  .menu li a:hover {
  color: grey;
  }
.menu li:first-child {
  padding-top: 60px;
  }
.menu li:last-child {
  padding-bottom: 100vh;
  }
.menu.active {
  display: flex;
  }
  .menu li a::after {
    display: none;
  }
}

@media screen and (max-height: 495px) {
  .menu li a, .lang-buttons {
    padding: 5px 16px;
    font-size: 18px;
    }
  .menu li {
    margin: 10px;
    }
  }

@media screen and (max-height: 368px) {
  .menu li a, .lang-buttons {
    padding: 0px 16px;
    font-size: 15px;
    }
  .menu li {
    margin: 5px;
    }
  }

/* --------------- GALLERY ----------------- */
.grid-gallery {
  width: 100%;
  max-width: 1200px;
  margin: auto auto;
  padding: 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-rows: dense;
  grid-gap: 20px;
}

.grid-gallery .grid-item {
  position: relative;
  overflow: hidden;
}

.grid-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  filter: grayscale(100%);
  border-radius: 10px;
}

.grid-gallery .grid-item:hover img{
  filter: grayscale(0);
}

.grid-gallery .grid-item:nth-child(3n - 2) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .grid-gallery .grid-item:nth-child(3n - 2) {
    grid-column: unset;
    grid-row: unset;
  }
}
/* ------filter gallery----- */
.filters {
  text-align: center;
  margin-top: 15px;
}

.filter-btn.active {
  color: var(--green);
  opacity: 1;
}

.filter-btn {
  display: inline-block;
  margin: 5px;
  padding: 10px 9px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  font-size: 90%;
  text-transform: uppercase;
}

.filter-btn:hover {
  color: var(--green);
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 1px 5px;
  }
}

/* -------gligthbox-------- */
.glightbox {
  caret-color: transparent;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: var(--text-color1);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  z-index: 11;
  padding: 8px;
  border-radius: 15%;
  user-select: none;
}

.lightbox-arrow.left {
  left: 20px;
}

.lightbox-arrow.right {
  right: 20px;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 97%;
  animation: fadeIn 0.3s ease-in-out;
  object-fit: contain; /* Prevent stretching */
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-overlay img.loaded {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 38px;
  color: var(--text-color1);
  cursor: pointer;
  transition: font-size 0.3s ease;
}

.lightbox-close:hover {
  color: var(--green);
}

.lightbox-caption {
  position: absolute;
  bottom: 0px;
  left: 20px;
  color: var(--text-color1);
  font-size: 16px;
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
  max-width: 90%;
  pointer-events: none;
  font-family: sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/*--------------- ABOUT PAGE ----------------*/
.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.image-container {
  order: 1;
  z-index: 0;
  width: 40%;
  padding: 20px 20px;
}

.text-container {
  order: 2;
  padding: 20px 20px;
  width: 60%;
  text-align: justify;
}

.text-container > h1 {
  font-size: 20vw;
}

.margin-bottom {
  margin-bottom: 10px;
}

.image-container img {
  max-width: 100%;
  border-radius: 30px;
  opacity: .8;
}

@media (max-width: 858px) {
  .about-container {
   flex-direction: column;
  }

  .image-container, .text-container {
    width: 100%;
  }

  .text-container > h1 {
    text-align: center;
  }
}

/* -------------- CONTACT ------------- */
#ggl-form {
  margin: 0 auto;
  width: 100%;
}

.input-field-container {
  width: 90%;
  margin: 0 auto;
}

.input-field {
  position: relative;
  border-bottom: 2px solid var(--green);
  margin: 15px 0;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
  transition: 0.15s ease;
}

.input-field label.bottom {
  top: 80%;
  transform: translateY(-50%);
}

.input-field input {
  width: 100%;
  height: 40px;
  padding-top: 10px; 
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
}

.input-field textarea {
  height: auto;
  padding-top: 10px; 
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:valid ~ label {
  font-size: 0.8rem;
  top: 10px;
  transform: translateY(-120%);
}

.required {
  font-size: 60%;
  font-style: italic;
  padding-bottom: 10px;
}

.btn2 {
  cursor: pointer;
  position: relative;
  padding: 0.5em 1.5em; 
  font-size: 1.25rem; 
  font-weight: 400;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center; 
  background: transparent;
  color: var(--text-color1);
  transition: all 100ms;
  overflow: hidden;
  height: 2.5em; 
  width: 12em;
  margin: 0 auto 0 auto;
}

.left-span,
.right-span {
  border-radius: 4px;
  position: absolute;
  height: 100%; 
  width: 1em; 
  border-top: 0.125em solid var(--text-color1); 
  border-bottom: 0.125em solid var(--text-color1);
  transition: all 500ms;
}

.left-span {
  left: 0;
  border-left: 0.125em solid var(--text-color1);
}

.right-span {
  right: 0;
  border-right: 0.125em solid var(--text-color1);
}

.text-btn {
  position: absolute;
  transform: translateX(0);
  width: 70%; 
  transition: all 200ms;
}

.hidden-text-btn {
  position: absolute;
  transform: translateX(100%);
  opacity: 0;
  transition: all 200ms;
}

.btn2:hover .text-btn {
  transform: translateX(-100%);
  opacity: 0;
}

.btn2:hover .hidden-text-btn {
  transform: translateX(0);
  opacity: 1;
}

.btn2:hover .right-span,
.btn2:hover .left-span {
  width: 100%;
}

/* -------------- SUBMISSION-FORM ------------- */
.submission-p {
  text-align: center;
}

.bi-hand-thumbs-up {
  margin-top: 30px;
  height: 300px;
  width: 300px;
  transition: 0.5s;
  color: var(--green);
}

.thumbs {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 858px) {
  .bi-hand-thumbs-up {
    height: 250px;
    width: 250px;
  }
}

/* -------------- FOOTER ------------- */
footer {
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
  padding: 15px 20px 15px 20px;
  margin-top: auto; /* sticky footer */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-container-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  align-items: center;
  justify-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex; 
  gap: 45px;
}

.footer-icon {
  text-decoration: none;
}

.footer-icon:hover {
  color: var(--green);
}

.footer-container-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-line {
  width: 95%;
  height: 3px;
  background-color: var(--text-color1);
  margin: 20px 0;
}

.footer-logos {
  display: flex;
  gap: 20px;
}

@media (max-width: 443px) {
  .footer-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 5px 20px;
  }
  .footer-logos .erumina-logo {
    grid-column: 1 / span 2;
    justify-self: center;
  }
}

.footer-logos img {
  height: 120px;
  transition: 1s;
}

.erumina-logo {
  padding: 10px;
}

@media (max-width: 800px) {
  .footer-container-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logos img {
    height: 100px;
  }
}
















  



