@font-face {
    font-family: 'bebas';
    src: url("fonts/Bebas-Regular.otf") format("opentype"),
         url("fonts/BEBAS.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'bebas', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    height: 100%;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%; /* Assure que les images ne débordent pas */
    height: auto; /* Maintient les proportions des images */
    border: none; /* Enlève les bordures */
    display: block; /* Évite l'espace sous les images */
}

h1 {
    font-family: 'bebas', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 4rem; /* Taille responsive */
}

a {
    text-decoration: none;
    color: inherit; /* ou une couleur spécifique si nécessaire */
}

.aceuil{max-width: 20%; /* Assure que le logo reste responsive */
height: auto; /* Conserve les proportions */}

header {
    margin: 0 auto; /* Centrage horizontal */
    max-width: 1500px;
    display: flex;
    justify-content: space-between; /* H1 à gauche, menu à droite */
    align-items: center;
    padding: 20px;
    color: black;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px; /* Crée une marge de 50px sous le <nav> */
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 20px; /* Espacement entre les éléments */
}

nav ul li a {
    font-size: 1.5rem; /* Taille de texte flexible */
    color: black;
    text-decoration: none;
}

nav ul li a.active {
    text-decoration: underline;
    font-weight: bold;
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Inclut les bordures et le rembourrage dans les dimensions */
}

.container {
    padding: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.logo {
    max-width: 20%; /* Assure que le logo reste responsive */
    height: auto; /* Conserve les proportions */
    display: block;
}

.logo2 {
    max-width: 100%; /* Assure que le logo reste responsive */
    height: auto; /* Conserve les proportions */
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px; /* Marge au-dessus des icônes */
}

.social-links a {
    display: inline-block;
    text-decoration: none;
}

.social-icon {
    width: 40px; /* Taille des icônes */
    height: 40px;
    transition: transform 0.3s ease; /* Animation pour le survol */
}

.social-icon:hover {
    transform: scale(1.1); /* Zoom au survol */
}

.projets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* Aligne les éléments à gauche */
}

.projet {
    width: calc(33.33% - 20px); /* 3 colonnes sur grands écrans */
    margin-bottom: 20px;
    text-align: center;
}

.image-container {
    width: 100%;
    aspect-ratio: 2.35 / 1; /* Ratio cinéma 2.35:1 */
    position: relative;
    overflow: hidden;
}

.image-projet {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .overlay {
    opacity: 1; /* Affiche l'overlay au survol */
}

.album-container {
    margin: 0 auto;
    max-width: 1500px;
    column-count: 4;
    column-gap: 10px;
	margin-bottom:50px;
}

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

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}
.suite{
	font-size: 2rem;
	text-align: center;
}
.autres-projets {
    margin: 0 auto;
    max-width: 1500px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.projet-item {
    width: calc(33.33% - 20px);
    aspect-ratio: 2.35 / 1;
    position: relative;
    overflow: hidden;
}

.projet-link {
    display: block;
    text-align: center;
    position: relative;
}

.image-principale {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.titre-overlay {
	font-size: 3rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projet-item:hover  {
    opacity: 1;
}

.projet-item:hover .image-principale {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px; /* Largeur maximale pour éviter qu'elle ne devienne trop grande */
    margin: 40px auto; /* Centrage et espacement */
    overflow: hidden;
    border-radius: 12px; /* Coins arrondis pour un effet plus moderne */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Ombre plus marquée pour un effet élégant */
    background: black; /* Fond noir pour un meilleur contraste */
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; /* S'assurer que la vidéo suit les bords arrondis */
}

/* Media Queries */

/* Tablettes */
@media screen and (max-width: 1500px) {
	
	nav ul li a {
    font-size: 2rem; /* Taille de texte flexible */
    color: black;
    text-decoration: none;}
	
    .album-container {
        column-count: 3;
    }
    
    .projet, .projet-item {
        width: calc(50% - 20px); /* 2 colonnes sur tablettes */
    }
	

}

/* Petits écrans (portables) */
@media screen and (max-width: 1000px) {
    .overlay {
        font-size: 3rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; /* Toujours visible */
    transition: none; /* Pas de transition */
}

.image-container:hover .overlay {
    opacity: 1; /* Assure que rien ne change au survol */
}

	
		nav ul li a {
    font-size: 3rem; /* Taille de texte flexible */
    color: black;
    text-decoration: none;}
	
    .album-container {
        column-count: 2;
    }
    
    .projet, .projet-item {
        width: 100%; /* 1 colonne sur petits écrans */
    }
    
    header {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 10px; /* Réduction des espaces pour les petits écrans */
    }
}

/* Très petits écrans (mobiles) */
@media screen and (max-width: 480px) {
    
    .overlay {
        font-size: 3.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; /* Toujours visible */
    transition: none; /* Pas de transition */
}

.image-container:hover .overlay {
    opacity: 1; /* Assure que rien ne change au survol */
}
	
		nav ul li a {
    font-size: 3rem; /* Taille de texte flexible */
    color: black;
    text-decoration: none;}
	
    .album-container {
        column-count: 1;
    }
    
    h1 {
        font-size: 2.5rem; /* Réduction de la taille du titre */
    }
    
    nav ul li {
        margin: 0 5px;
    }
}
