/* ====== #style.css ====== */

/* ====== CUSTOM PROPERTY ====== */

@font-face {
    font-family: "Montserrat";
    src: url(/assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf);
    font-weight: normal;
    font-style: normal;
  }

:root{



  /* colors */

  --header-color: rgba(17, 17, 17, 0.5);
  --black-background: #111111;
  --white: #fff;
  --accent-color: #ff3366;

    
  --button-2: var(--accent-color);
  --button-2-hover: #ff3e6e;
  --buton-glow: #ff336680;

  /* typography */

  --fs-1: 7rem;
  --fs-2: 4.5rem;
  --fs-3: 3.6rem;
  --fs-4: 2.4rem;
  --fs-5: 2.2rem;
  --fs-6: 1.2rem;
  --fs-7: 1rem;
  --fs-8: 0.8rem;
  --fs-9: 0.6rem;
  --fs-10: 0.5rem;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;


  /* transitions */

  --transition-1: 0.3s ease;


}





/* ====== GLOBAL STYLES ====== */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--white);
  background-color: var(--black-background);
}

a {
  text-decoration: none;
  color: inherit;
}

.section{
  padding: 80px 0;
  color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1,
h2,
h3 {
  color: var(--white);
  font-weight: var(--fw-800);
  line-height: 1;
}

h1 {
  font-size: var(--fs-3);
  letter-spacing: -3px;
}

p {
  font-family: Montserrat;
  src: url(/assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  letter-spacing: 0;
}

h2 { font-size: var(--fs-5); }

h3 {
  font-size: var(--fs-6);
}

img {
  display: block;
  margin: 0 auto;
  width: 60%;
  height: 60%;
  object-fit: cover;
  border-radius: 20px;
}

.image {
  position: relative;
  width: 40%; /* image size */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 1;
}

.image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.image::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/images/SurvivalGame_FPV_nature_night.png') center/cover no-repeat;
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: -1;
}

/* Utility classes */
.text-left { text-align: left; }
.text-center { text-align: center; }
.shadow-sm { box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.shadow-lg { box-shadow: 0 8px 20px rgba(0,0,0,0.5); }





/* ====== HEADER ====== */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-color);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list a:hover {
  color: var(--accent-color);
}

.nav-list li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 5px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px; /* line width */
  width: 0%;
  background-color: var(--accent-color);
  transition: width var(--transition-1);
}

.nav-list a:hover::after {
  width: 100%;
}

/* Bouton hamburger caché par défaut (desktop) */
.nav-toggle {
  display: none;
}





/* ====== BUTTONS ====== */

.content-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.btn {
  padding: 10px 20px;
  border-radius: 10px;
  transition: var(--transition-1);
  font-weight: bold;
}

.btn:hover{
  transform: scale(1.05);
  transition: var(--transition-1);
}

.btn-primary {
  background: var(--button-2);
  color: var(--white);
  box-shadow: 0 0 30px var(--buton-glow);
}

.btn-primary:hover {
  background: var(--button-2-hover);
  box-shadow: 0 0 50px var(--buton-glow);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black-background);
}





/* ====== HERO ====== */
.section.hero {
  min-height: 55vh; /* to make the hero section take 45% of the viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* empêche l'image de déborder */
}

.container.hero-container {
  position: relative;
  padding-bottom: 60px;
}

/* Texte au premier plan */
.hero-content {
  position: relative;
  top: 75px;
  z-index: 2; /* texte au-dessus de l'image */
  text-align: left;
  max-width: 600px;
}

.hero-content h1 {
  line-height: 0.5;
}

.hero-title {
  margin-top: 0px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.hero-subtitle {
  margin-bottom: 0px;
}

.hero-subtext {
  margin-bottom: 25px;
}

.image.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%; /* image size */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}




/* ====== Projects ====== */

.project-container-left, 
.project-container-right {
  background-image: 
    linear-gradient(to top, var(--black-background), transparent 30%),
    linear-gradient(to bottom, var(--black-background), transparent 30%),
    url("/assets/images/IntenseShooterCommIllu_Render01_edited01.png");
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 6;
  width: 100%;

  display: flex;
  justify-content: flex-start;
  align-items: center;
}


.project-container-right {
  background-image: 
    linear-gradient(to top, var(--black-background), transparent 30%),
    linear-gradient(to bottom, var(--black-background), transparent 30%),
    url("/assets/images/SurvivalGame_FPV_nature_night.png");
  justify-content: flex-end;
  margin-top: 3vh;
}




.container.right{
  display: flex;
  justify-content: flex-end;
  color: #fff;
}

.project-content-left{
  text-align: left;
  max-width: 40%;
}

.project-content-right{
  justify-self: center;
  text-align: right;
  max-width: 40%;
}

.content-buttons.content-buttons-right{
  justify-content: flex-end;
}





/* ====== news ====== */

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* centre les cards si moins de 3 sur la ligne */
}

.news-card {
  background-color: #1a1a1a;
  color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  flex: 1 1 calc(33.33% - 20px); /* flex-grow + flex-shrink + base width */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition-1);
}

.news-card:hover img{
  transform: scale(1.1);
  transition: var(--transition-1);
}

.news-card img {
  width: 100%;
  height: 180px;
  border-radius: 0;
  object-fit: cover;
  transition: var(--transition-1);
}

.news-card .card-content {
  padding: 0px 15px 0px 15px;
}

.news-card .card-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.news-card .card-summary {
  line-height: 1.4;
}

/* Responsive : 2 cartes sur tablette, 1 sur mobile */
@media (max-width: 900px) {
  .news-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .news-card {
    flex: 1 1 100%;
  }
}





/* ====== ARTICLE ====== */

.article-container {
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* centre les cards si moins de 3 sur la ligne */
}

.article-card {
  display: flex;              /* aligne image + texte sur une ligne */
  flex-direction: row;         /* image à gauche, texte à droite */
  background-color: #1a1a1a;
  color: var(--white);
  height: 17vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: var(--transition-1);
  margin-bottom: 2%;
}

.article-card:hover{
  transform: scale(1.03);
  transition: var(--transition-1);
}

.article-card img {
  width: 20vw;
  height: 100%;               /* pour garder ratio */
  object-fit: cover;
  border-radius: 0;
  transition: var(--transition-1);
}

.article-card .article-content {
  padding: 20px;              /* espace autour du texte */
  flex: 1;                    /* prend tout l’espace restant */
}

.article-card .card-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.article-card .card-summary {
  line-height: 1.4;
}

/* Responsive : 2 cartes sur tablette, 1 sur mobile */
@media (max-width: 900px) {
  .article-card {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .article-card {
    width: 100%;
  }
}





/* ====== footer ====== */

#footer {
  background-color: rgb(10, 10, 10);
}

/* .footer-container{
  justify-content: left;
  align-items: center;
} */

.footer-content {
  width: 90%;
  max-width: 1200px;
  padding: 20px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  color: gray;
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content ul li {
  position: relative; /* nécessaire pour que ::after se cale correctement */
  margin-right: 1.5rem; /* optionnel : espace entre les items */
}

.footer-content ul li a {
  position: relative;
}

.footer-content ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* décale légèrement sous le texte */
  height: 2px;
  width: 0%;
  background-color: var(--accent-color);
  transition: width var(--transition-1);
}

.footer-content ul li a:hover {
  color: var(--accent-color);
}

.footer-content ul li a:hover::after {
  width: 100%;
}



/* ====== RESPONSIVE ====== */

/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
  :root {
    --fs-1: 5rem;
    --fs-2: 3.5rem;
    --fs-3: 2.8rem;
    --fs-4: 2rem;
    --fs-5: 1.8rem;
  }

  .image.hero-image {
    width: 75%;
  }

  .hero-content {
    max-width: 500px;
  }

  .project-content-left,
  .project-content-right {
    max-width: 50%;
  }
}

/* Tablettes */
@media (max-width: 900px) {
  :root {
    --fs-1: 4rem;
    --fs-2: 3rem;
    --fs-3: 2.4rem;
    --fs-4: 1.8rem;
    --fs-5: 1.6rem;
    --fs-6: 1.1rem;
  }

  .section {
    padding: 60px 0;
  }

  /* Header */
  .nav-list {
    gap: 15px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-content {
    top: 50px;
    max-width: 450px;
  }

  .image.hero-image {
    width: 80%;
  }

  .content-buttons {
    flex-wrap: wrap;
    gap: 15px;
  }

  /* Projects */
  .project-container-left,
  .project-container-right {
    aspect-ratio: 16 / 7;
  }

  .project-content-left,
  .project-content-right {
    max-width: 55%;
  }

  /* Image */
  .image {
    width: 50%;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-content ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  :root {
    --fs-1: 3rem;
    --fs-2: 2.5rem;
    --fs-3: 2rem;
    --fs-4: 1.5rem;
    --fs-5: 1.3rem;
    --fs-6: 1rem;
    --fs-7: 0.9rem;
  }

  .section {
    padding: 40px 0;
  }

  .container {
    width: 95%;
  }

  /* Header avec menu hamburger */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  /* Bouton hamburger */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
  }

  /* Animation du bouton hamburger en X */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Overlay sombre sans flou (juste pour assombrir) */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Menu déroulant simple et élégant */
  .nav-list {
    position: fixed;
    top: 70px;
    right: 20px;
    width: auto;
    min-width: 250px;
    max-width: 320px;
    height: auto;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    padding: 20px 15px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    font-size: 1rem;
    padding: 12px 20px;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-list .nav-btn {
    background: var(--button-2);
    color: var(--white);
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
  }

  .nav-list .nav-btn:hover {
    background: var(--button-2-hover);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
  }

  /* Cacher le bouton Get Involved du header sur mobile */
  .btn-header {
    display: none;
  }

  /* Hero */
  .section.hero {
    min-height: 70vh;
  }

  .container.hero-container {
    padding-bottom: 40px;
  }

  .hero-content {
    top: 30px;
    max-width: 100%;
  }

  .hero-content h1 {
    line-height: 1.2;
  }

  .image.hero-image {
    display: none; /* Masquer l'image sur mobile pour prioriser le contenu */
  }

  .content-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    flex: 0 1 auto;
  }

  /* Projects */
  .project-container-left,
  .project-container-right {
    aspect-ratio: 16 / 10;
    align-items: flex-end;
    padding-bottom: 20px;
  }

  .project-content-left,
  .project-content-right {
    max-width: 90%;
    text-align: center;
  }

  .container.right {
    justify-content: center;
  }

  .content-buttons.content-buttons-right {
    justify-content: center;
  }

  /* Article cards */
  .article-card {
    flex-direction: column;
    height: auto;
  }

  .article-card img {
    width: 100%;
    height: 200px;
  }

  .article-card .article-content {
    padding: 15px;
  }

  /* Image */
  .image {
    width: 80%;
  }

  img {
    width: 100%;
    height: auto;
  }

  /* Footer */
  .footer-content {
    padding: 15px;
  }

  .footer-content ul {
    flex-direction: column;
    gap: 5px;
  }

  .footer-content ul li {
    margin-right: 0;
  }
}