@import url(https://db.onlinewebfonts.com/c/c998a4e2dac2d48cdc69da71f3e209d0?family=AkcelerA-Medium);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "AkcelerA-Medium";
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #000000;
    color: #000;
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    .about h2, .about img {
        flex: none;
        width: 100px;
    }
    .about img {
        margin-top: 20px;
    }

    .contact {
        font-size: 12px;
        color: black;
    }
}
main {
     flex: 1;
}

/* index page  */
/* navrbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.nav-left a {
    margin-right: 20px;
    text-decoration: none;
    color: rgb(208, 207, 207);
}

.nav-center {
    text-align: center;
    color: #ffffff;
}

.nav-center h1 {
    font-size: 14px;
    color: white;
    font-family: "DM Sans", sans-serif;
}
.nav-center p {
    font-size: 10px;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #ffffff;
    
    
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0, 0.6);

}

.nav-left a {
    font-size: 12px;
}
.nav-left a:hover {
    color: #949393;
    cursor: pointer;
}

.nav-center h1 {
    font-size: 24px;
} 

.nav-right a {
    font-size: 22px;
    color: black;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-left {
        order: 2;
    }

    .nav-center {
        order: 1;
    }

    .nav-right {
        order: 3;
    }
}

/* grid */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    padding: 0px;
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* card  */

.card {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}


.card img, 
.card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.card video {
    pointer-events: none;
}
 /* hover effect  */
 .card:hover img,
 .card:hover video {
    transform: scale(1.1);
 }
 .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
 }
 .card:hover .overlay {
    opacity: 1;
 }

 .overlay h2 {
    font-size: 12px;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgb(255, 255, 255, 0.6);
    
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0, 0.6);
 }

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

 /* Footer */

.footer {
    padding: 60px 0 40px;
    text-align: center; /* centre le contenu horizontalement */
    background: #000000; /* couleur de fond du footer */
}

.nav-left a.active {
    color: #ffffff;           /* couleur différente */
    font-weight: bold;         /* texte en gras */
    border-bottom: 0,1px solid #ffffff; /* ou soulignement */
}

.footer p {
    margin: 0; /* pas de marge supplémentaire */
}

.footer p a {
    color: #fffdfd; /* couleur du texte */
    text-decoration: none; /* supprime le soulignement */
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block; /* assure que le lien reste centré */
    font-family: "DM Sans", sans-serif;
}

.footer p a:hover {
    color: #908e8e; /* couleur au survol */
    cursor: pointer;
}
.footer-content img:hover {
    transform: scale(1.1);
    color: #908e8e; /* couleur au survol */
    cursor: pointer;
}

/* about page  */

/* Section */
.about-section {
  padding: 100px 10%;
}

/* Titre */
.about-title {
  text-align: center;
  color: red;
  font-size: 25px;
  letter-spacing: 5px;
  margin-bottom: 80px;
}

/* Container flex */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Texte */
.about-text {
  flex: 1;
  max-width: 500px;
}

.about-text p {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #ccc;
  font-size: 14px;
}

.languages {
  margin-top: 30px;
  font-size: 14px;
  color: #888;
}

/* Image */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: grayscale(100%);
}


/* contact page  */

.image-container {
    position: relative;  /* nécessaire pour positionner le lien au-dessus */
    display: inline-block; /* pour s’adapter à la taille de l’image */
}

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

.image-container a {
    font-family: "DM Sans", sans-serif;
}
.overlay-link {
    position: absolute;
    top: 50%;      /* centre verticalement */
    left: 50%;     /* centre horizontalement */
    transform: translate(-50%, -50%); /* ajuste parfaitement au centre */
    background: rgba(0,0,0,0.6); /* semi-transparent pour mieux voir le texte */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
}
.overlay-link {
    font-size: 12px;
}

.overlay-link:hover {
    background: rgba(0,0,0,0.8);
}