/* ====== #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%;
}





/* ====== 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 {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .news-card {
    width: 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%;
}