body, html {
    margin: 0;
    height: 100%;
    background-color: #FEEEDD;
    
}

/* Header */

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10; /* Toujours au-dessus de la vidéo */
  background-color: #0B1854;
}

nav a {
  text-transform: uppercase;
  color: #FEEEDD;
  text-decoration: none;
  font-size: 24px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  font-family: "Rubik", sans-serif;
  padding:50px;
}

nav a:hover {
  color: #FF9C40;
  text-decoration: none;

}

nav {
  margin: 20px auto;
}

.container h1 {
    font-family: "Rubik", sans-serif;
    text-align: center; 
    text-transform: uppercase; 
    font-size: 2.5em; 
    font-weight: bold; 
    color: #0B1854; 
    margin-top: 100px; 
    margin-bottom: 20px;
    
}


.showreel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    
}

.showreel iframe{
     width: 50%;
  aspect-ratio: 16 / 9;
  height: auto;

}
iframe {
     width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 100%;
    border-radius: 10px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); 
}

.container{
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-bottom: -40px;
    padding: 100px;
    gap: 20px;
}

.buttons a {
    font-family: "rubik";
    text-decoration: none;
    padding: 15px 30px;
    background-color: #0B1854;
    color: #FEEEDD;
    margin: 0 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.buttons a:hover {
    background-color: #FF9C40;
}

  h2 {

    font-family: "Rubik", sans-serif;
    font-weight: 600;
    color: #0B1854;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 2em;
    text-align: center;

  }

/* Style pour les vidéos */
.video-row {
    display: flex;
    justify-content: center;
    gap: 80px;
}
.testdefou {
    display: flex;
    justify-content: center;

}

.video-row iframe {
    width: 450px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Galerie en Grid */
.portfolio {
    padding: 60px 20px;
    background: #FEEEDD;
    text-align: center;
  }
  
  .portfolio h2 {
    font-family: "Rubik", sans-serif;
    font-size: 2.5em;
    color: #0B1854;
    margin-bottom: 40px;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px;
    gap: 20px;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }

  .gallery-item.landscape {
    grid-row: span 6;
  }
  .gallery-item.landscape2 {
    grid-row: span 7;
  }
  
  .gallery-item.portrait {
    grid-row: span 17;
  }

  .gallery-item.portrait2 {
    grid-row: span 16;
  }
  
  .gallery-item.square {
    grid-row: span 10;
  }
  

@media (max-width: 768px) {
header {
    flex-direction: column;
    align-items: center;  
    overflow-x: hidden;
    
  }

  nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 10px 0 0 0;
  }

  nav a {
    padding: 10px 15px;
    font-size: 18px;
    text-align: center;
  }

  .container h1 {
    font-size: 1.8em;
    margin-top: 103px;
    padding: 0 10px;
  }

  .showreel iframe {
 
    width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
 
  }

  .buttons {
    flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  margin-bottom: 0;
  box-sizing: border-box;
  }

  .buttons a {
    padding: 8px 10px;
    font-size: 14px;
    
    text-align: center;
  }

  .section h2 {
    font-size: 1.8em;
    text-align: center;
  }

  .section-content {
    flex-direction: column;
    gap: 20px;
  }


  .video-row {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .video-row iframe {
    width: 100%;
     aspect-ratio: 16 / 9;
  height: auto;
  }

  .portfolio {
    padding: 40px 10px;
  }

  h2 {

    font-family: "Rubik", sans-serif;
    font-weight: 600;
    color: #0B1854;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 2em;
    text-align: center;
  }

  .video-row {
    display: flex;
    flex-direction: column;
    flex: 2;
    justify-content: center;
    gap: 40px;
}

.video-row iframe {
    width: 100%;
     aspect-ratio: 16 / 9;
  height: auto;
}

  .portfolio h2 {
    font-size: 1.8em;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 80%; /* espace entre les colonnes ET les lignes */
  }

  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
  }

  .gallery-item.portrait,
  .gallery-item.portrait2 {
    aspect-ratio: 3 / 4;
  }

  .gallery-item.landscape,
  .gallery-item.landscape2 {
    aspect-ratio: 4 / 3;
  }

  .gallery-item.square {
    aspect-ratio: 1 / 1;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
  }

  /* Supprime les row span inutiles */
  .gallery-item.portrait,
  .gallery-item.portrait2,
  .gallery-item.landscape,
  .gallery-item.landscape2,
  .gallery-item.square {
    grid-row: auto;
  }
}

