* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #201d1d;
  color: white;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


nav-bar {
  background-color: #333;
  padding: 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 70px;
}

nav-bar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

nav-bar a:hover {
  color: rgb(35, 140, 211);
}

#hero {
  height: 50vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  overflow: hidden;
  padding-left: 5%;
  margin-bottom: 30px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

#hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
  text-shadow: 
    0 0 40px rgb(0, 0, 0),
    0 0 80px rgb(0, 0, 0),
    0 0 120px rgb(0, 0, 0);
}

#hero p {
  margin-bottom: 20px;
  text-shadow: 
    0 0 40px rgb(0, 0, 0),
    0 0 80px rgb(0, 0, 0),
    0 0 120px rgb(0, 0, 0);
}

/* GALLERY SECTION */
.gallery {
  padding: 80px 0;  /* Vertical padding only */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery h1 {
  background-color: rgb(64, 92, 92);
  font-size: 50px;
  text-align: center;
  width: 100%;  /* Full width of parent */
  padding: 20px 0;
  margin-bottom: 40px;
}

/* MODULAR GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));  /* Responsive columns */
  gap: 30px;
  max-width: 1200px;  /* Maximum width constraint */
  width: 100%;
  justify-content: center;  /* Center cards */
}

/* PROJECT CARDS */
.project-card {
  aspect-ratio: 1 / 1.2;
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  padding: 20px;
  font-size: 24px;
  text-align: center;
  background-color: #2a2a2a15;
  margin: 0;
}

/* OVERLAY */
.project-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* FOOTER */
app-footer {
  background-color: #222;
  padding: 40px;
  text-align: center;
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

app-footer a {
  color: rgb(35, 140, 211);
  text-decoration: none;
}

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

.project-content {
  max-width: 1000px;  /* Largeur maximale */
  margin: 0 auto;    /* Centre horizontalement */
  padding: 40px 20px; /* Espacement vertical et horizontal */
}

.project-content h1{
  text-align: center;
  margin: 0 auto;
}

.description{
  background-color: #2a2f3f;
  padding: 20px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 37px;
}

.description p{
  margin: 0;
  padding: 3px 0;
}

.video-container {
  margin: 30px 0; /* Espace au-dessus et en-dessous */
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Ratio YouTube standard */
  border-radius: 8px;
}

.short-container {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement (optionnel) */
  margin: 30px 0;
}

.short-container iframe {
  width: 315px;
  height: 560px;
  border-radius: 8px;
  border: none;
}
.imageInline{
  display: inline-block;
  gap : 10px;
  align-items: center;
}

.imageInline img{
  width: 300px;
  height: auto;
  position: relative;
}

.project-content a{
  background-color: #2f3853;
  border-radius: 16px;
  padding: 10px;
  color : white;
  display: block;
  justify-items: center;
  width: fit-content;
  margin: 20px auto;
  text-decoration: none;
}

.project-content a:hover{
  background-color: rgb(76, 107, 165);
}