

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #121212;
    color: #fff;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;

    color: #f5a623;
    margin: 0;

    transition: opacity 0.3s ease;
}

header h1::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background: #f5a623;
    margin-top: 6px;
    opacity: 0.8;
}


header h1 a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin: 0 15px;
    margin-right: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.nom {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 2.5rem; /* Taille du texte flexible */
    text-align: center;
    margin: 1rem auto;
}


.presentation-fond {
    max-width: 900px;
    margin: 60px auto;
    padding: 48px 42px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 20px;

    display: flex;
    justify-content: center;

    /* état initial (avant scroll) */
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s ease-out, transform 1s ease-out;
}

.presentation {
    max-width: 680px;
    width: 100%;

    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    letter-spacing: 0.025em;

    text-align: center;
    color: rgba(255, 255, 255, 0.92);

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.9s ease-out, transform 1s ease-out;
}

/* état visible */
.presentation-fond.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.presentation-fond.is-visible .presentation {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

/* mobile */
@media (max-width: 768px) {
    .presentation-fond {
        margin: 40px 16px;
        padding: 28px 22px;
    }

    .presentation {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* accessibilité */
@media (prefers-reduced-motion: reduce) {
    .presentation-fond,
    .presentation {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://source.unsplash.com/1600x900/?technology,editing') no-repeat center center/cover;
    text-align: center;
}


.intro {
    z-index: 1000;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
}
.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeIn 2s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(20);
    }
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.background::after{
  content:"";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.75)
  );
  pointer-events:none;
  z-index: -1;
}


section {
    padding: 60px 40px;
}

section h2{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 26px;
}

section h2::after{
  content:"";
  display:block;
  width: 64px;
  height: 3px;
  background: #f5a623;
  margin: 14px auto 0;
  border-radius: 999px;
  opacity: 0.9;
}

.projects {

    grid-template-columns: repeat(3, 1fr);

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* Espacement entre les éléments */

}

.project {
   
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background: #000;
    transition: transform 250ms ease, box-shadow 250ms ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex: 1 1 calc(100% - 2rem); /* Prend toute la largeur sur mobile */
    max-width: 300px; /* Limite maximale pour les vidéos */
}

@media (max-width: 768px) {
    .nom {
        font-size: 2rem;
    }

    .projects {
        flex-direction: column;
        gap: 1.5rem;
    }

    .video-container {
        width: 100%;
    }
}

/* Écrans de moins de 480px (petits téléphones) */
@media (max-width: 480px) {
    .nom {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .video-container {
        width: 100%;
        padding: 0;
    }

    .nav a {
        font-size: 1rem;
    }
}



.project:hover{
  transform: translateY(-6px) scale(1.03);
}


.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

    max-width: 600px; /* Limite maximale pour grands écrans */
    margin: 1rem auto; /* Centre les vidéos */
}

.project:hover img {
    transform: scale(1.1);
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover .overlay {
    opacity: 1;
}

.overlay {
    padding: 10px 20px;
    background: #f5a623;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 20px;
    background: #181818;
    margin-top: 20px;
}

footer p {
    font-size: 14px;
    color: #777;
}

/* Make the footer "Mentions légales" link look like the copyright text */
/* Footer: place copyright and legal link on separate lines */
footer p {
    display: block;
    font-size: 14px;
    color: #777;
    margin: 0;
    text-decoration: none;
}

footer a {
    display: block;
    font-size: 14px;
    color: #777;
    margin: 8px 0 0 0;
    text-decoration: none;
}

video {
    display: block;
    max-width: 100%;
    height: auto;
    outline: none; /* Supprime les bordures par défaut du focus */
    box-sizing: border-box;
}

#prechargement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f5f5f5;
    border-top: 5px solid #f5a623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #121212;
    cursor: pointer;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Affiche le texte au survol */
.project:hover .overlay-text {
    opacity: 1;
}

.project-item {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Styles par défaut */

#nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

#nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
}

/* Section Contact */
#contact {
    padding: 2rem 1rem;
    text-align: center;
    background-color: #121212; /* Couleur sombre */
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Conteneur de contact */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

/* Élément de contact individuel */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #f5a623; /* Couleur orange pour les icônes */
}

/* Liens */
.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #f5a623;
}

/* Liens des réseaux sociaux */
.social-links a {
    margin: 0 0.5rem;
}

/* Cache l'icône hamburger sur grand écran */
.menu-toggle {
    display: none;
}

/* Mode mobile */
@media screen and (max-width: 768px) {
    /* Affiche l'icône hamburger */
    .menu-toggle {
        display: block;
        position: absolute;
        font-size: 30px;
        color: rgb(255, 255, 255);
        cursor: pointer;
        margin-left: 100px; /* Pousse l'icône à droite */
        padding: 5px;
    }


    /* Cache les liens du menu par défaut */
    .navl {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #000; /* Fond noir pour bien voir */
        padding: 10px 0;
    }

    /* Affiche les liens en colonne quand le menu est actif */
    .menu.active {
        display: flex;
        flex-direction: column;
    }

    /* Styles des liens en mobile */
    .nav a {
        text-align: center;
        padding: 15px;
        display: block;
        color: white;
    }
}





/* Style du bouton Fermer */
button {
    background-color: #292929; /* Couleur bleue */
    color: white; /* Texte blanc */
    border: none; /* Pas de bordure */
    padding: 12px 24px; /* Espacement intérieur */
    font-size: 16px; /* Taille du texte */
    border-radius: 8px; /* Coins arrondis */
    cursor: pointer; /* Curseur pointer pour indiquer qu'il est cliquable */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transition fluide */
    margin-top: 20px; /* Espacement au-dessus du bouton */
}

/* Effet au survol (hover) */
button:hover {
    background-color: #f5a623; /* Couleur bleue plus foncée */
    transform: scale(1.05); /* Légère augmentation de la taille */
}

/* Effet de focus (quand le bouton est sélectionné) */
button:focus {
    outline: none; /* Supprime l'outline par défaut */
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25); /* Ombre bleue autour du bouton */
}



/* Modale */
/* Styles pour la modale */
#modal {
    width: 60%; /* Largeur fixe de la modale */
    max-width: 800px; /* Taille maximale */
    height: 70%; /* Hauteur fixe de la modale */
    max-height: 600px; /* Hauteur maximale */
    overflow: auto; /* Ajoute une barre de défilement si le contenu dépasse */
    background-color: rgb(0, 0, 0, 0.9);
    padding: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Masqué par défaut */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

/* Contenu de la modale */
.modal-content {
    max-height: calc(100% - 50px); /* Limite la hauteur du texte pour laisser de la place pour d'autres éléments */
    overflow-y: auto;
    flex-grow: 1;
    overflow: hidden;
}

/* Titre et description de la modale */
#modal-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#modal-description {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Vidéo dans la modale */
#modal-video {
    width: 100%;
    height: auto;
    max-width: 800px;
    object-fit: contain;
    box-shadow: 0px, 10px, 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Bouton de fermeture */
.close-btn {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1em;
}

.close-btn:hover {
    background-color: #d32f2f;
}


.bottom-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.bottom-link .nav-end {
    background-color: rgba(0, 0, 0, 0.5); /* Fond blanc légèrement transparent */
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    color: rgba(255, 255, 255); /* Couleur du texte */
    backdrop-filter: blur(6px); /* Effet de flou sympa (optionnel) */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bottom-link .nav-end:hover {
    background-color: rgba(255, 255, 255, 0.35);
    color: #000;
}


.main {

    z-index: 1000;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    text-align: center;
}







/* ========== PHOTO LIST (scroll vertical) ========== */
.photo-list {
  padding: 64px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.photo-list__header {
  text-align: center;
  margin-bottom: 40px;
z-index: 1000;
border-radius: 10px;
background: rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
padding: 20px 40px;
}

.photo-list__header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.photo-list__header p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

/* Liste verticale */
.photo-list__items {
  display: flex;
  flex-direction: column;
  gap: 42px; /* espace entre les photos */
  border-radius: 10px;
}

/* Un item = photo + texte */
.photo-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* La zone photo (toutes identiques) */
.photo-item__media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* 🔥 IMPORTANT : même taille et même ratio pour toutes les images */
.photo-item__media img {
  width: 100%;
  aspect-ratio: 16 / 9;     /* ✅ toutes les photos en 16:9 */
  height: auto;
  object-fit: contain;        /* ✅ recadrage auto propre */
  display: block;

  /* petit look cinéma */
  filter: contrast(1.03) saturate(1.02);
  transform: scale(1);
  transition: transform 300ms ease, filter 300ms ease;
}

/* Hover léger */
.photo-item__media:hover img {
  transform: scale(1.02);
  filter: contrast(1.06) saturate(1.05);
}

.photo-item__text h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  
}

.photo-item__text p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 70ch;
}

.photo-item__text {
    z-index: 1000;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
}

/* Responsive : plus compact sur mobile */
@media (max-width: 700px) {
  .photo-list {
    padding: 48px 16px;
  }

  .photo-list__items {
    gap: 32px;
  }

  .photo-item__media img {
    aspect-ratio: 4 / 3;  /* ✅ plus adapté mobile */
  }
}

/* Conteneur des 2 photos */
.story-item__media {
  display: flex;
  gap: 14px;               /* ✅ espace entre les 2 photos (horizontal) */
}

/* Responsive : les 2 photos passent en vertical */
@media (max-width: 700px) {
  .story-item__media {
    flex-direction: column;
    gap: 14px;             /* ✅ espace entre les 2 photos (vertical) */
  }
}


/* ========== BTS GALLERY (2 photos côte à côte) ========== */
.bts-gallery {
  padding: 64px 20px;
  max-width: 900px;      /* ✅ ne prend pas tout l'écran */
  margin: 0 auto;
}

.bts-gallery__header {
  text-align: center;
  margin-bottom: 28px;
}

.bts-gallery__header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.04em;
}

.bts-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ 2 images côte à côte */
  gap: 14px;
}

.bts-gallery__grid img {
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ toutes mêmes tailles */
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 250ms ease;
}

.bts-gallery__grid img:hover {
  transform: scale(1.02);
}

/* Responsive : sur mobile -> 1 colonne */
@media (max-width: 650px) {
  .bts-gallery {
    max-width: 520px;
  }

  .bts-gallery__grid {
    grid-template-columns: 1fr; /* ✅ 1 image par ligne */
  }
}





.bts-gallery {
  padding: 64px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.bts-gallery__header {
        z-index: 1000;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
}

/* ✅ Panel sombre pour décoller du fond */
.bts-gallery__panel {
  background: rgba(0, 0, 0, 0.45);              /* sombre + transparent */
  border: 1px solid rgba(255, 255, 255, 0.10);  /* contour léger */
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(10px);                   /* effet ciné/glass */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* Grid 2 colonnes */
.bts-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bts-gallery__grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 250ms ease;
}

.bts-gallery__grid img:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 650px) {
  .bts-gallery__grid {
    grid-template-columns: 1fr;
  }
}


/* PANEL SOMBRE réutilisable partout */
.dark-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 18px 20px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
}

/* Texte du panel */
.dark-panel h1,
.dark-panel h2,
.dark-panel h3 {
  color: #fff;
  margin-top: 0;
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 0;
}


