/* ==========================================================
   BASE
   ========================================================== */

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

@font-face {
  font-family: 'Lazzer';
  src: url('fonts/LazzerVF-TRIAL.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Autres polices testées : BagossCollectionVF-TRIAL.woff2 */

main a {
  text-decoration: underline;
  color: black;
  }

body {
  font-family: 'Lazzer', Helvetica, Arial, sans-serif;
  background: white;
  color: black;
}

h2 {
  font-size: 40px;
  margin-bottom: 25px;
}

p.legende {
  font-size: 1.2rem;
  font-weight: lighter;
}

ul {
  list-style: none;
}


/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: #fff;
  border: none;
  box-shadow: none;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.navbar.hide {
  transform: translateY(-100%);
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar a {
  text-decoration: none;
  color: black;
  font-size: 23px;
}

#lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0px;
  font-family: inherit;
  font-size: 23px;
  color: black;
}

/* Bouton burger : caché sur ordinateur */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: black;
}


/* ==========================================================
   PAGE ABOUT
   ========================================================== */

.contenu-about {
  margin-top: 90px;
  display: flex;
  gap: 20px;
}

.space-about,
.txt-about {
  flex: 1;
  padding: 20px;
  color: black;
}


.space-about img {
  height: 500px;
  width: auto;                 /* garde les proportions */
  display: block;
}


.contenu-about h3 {
  margin-bottom: 10px;
}

.txt-about p {
  margin-bottom: 30px;
}


/* ==========================================================
   PROJET SUIVANT
   ========================================================== */

.projet-suivant {
  padding: 30px 60px 90px 0;
  display: flex;
  justify-content: flex-end;
}

.projet-suivant-bloc {
  text-align: left;
}

.projet-suivant-lien {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: black;
  font-size: 37px;
  font-weight: 650;
}

.projet-suivant-fleche {
  display: inline-block;
  transition: transform 0.3s ease;
}

.projet-suivant-lien:hover .projet-suivant-fleche {
  transform: translateX(10px);
}

.projet-suivant-nom {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 400;
  color: darkgrey;
}


/* ==========================================================
   PAGE D'ACCUEIL : VITRINE
   ========================================================== */

.projects {
  padding: 10px;
  margin-top: 80px;
}

.vitrine-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0 23px 40px 23px;
  /* max-width: 1600px; margin: 0 auto;   ← décommente pour plafonner sur très grand écran */
}

.vitrine-bloc {
  display: flex;
  width: 100%;
}

.vitrine-bloc.image-gauche {
  justify-content: flex-start;
}

.vitrine-bloc.image-droite {
  justify-content: flex-end;
}

/* Rangée de 2 colonnes : rapport fixe 3 parts / 2 parts,
   les deux images rétrécissent ensemble */
.vitrine-visuels {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.vitrine-principal {
  flex: 3 1 0;
  min-width: 0;
}

.vitrine-secondaire {
  flex: 2 1 0;
  min-width: 0;
}

.vitrine-visuel img,
.vitrine-visuel video {
  width: 100%;
  height: auto;
  display: block;
}

/* Bloc pleine largeur */
.vitrine-bloc.image-pleine {
  justify-content: center;
}

.vitrine-content {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
}

.vitrine-bloc.image-pleine .vitrine-content {
  width: 100%;
}

/* Légendes : toujours à la largeur exacte de l'image au-dessus */
.vitrine-legende {
  display: flex;
  gap: 30px;
  margin-top: 25px;
  width: 0;
  min-width: 100%;
}

.legende-categorie {
  flex: 0 0 clamp(90px, 35%, 170px);
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: left;
  min-width: 0;
}

.legende-phrase {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: left;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Blocs image-droite : catégorie sur 1/4 */
.vitrine-bloc.image-droite .legende-categorie {
  flex: 0 0 25%;
}


/* ==========================================================
   GRILLE DE PROJETS (masonry)
   ========================================================== */

.projects-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 20px;
}

.credit {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
}

.projects-masonry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 60px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.project-card img,
.project-card video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project-card h3 {
  font-size: 18px;
  font-weight: normal;
}

.project-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
}

.project-type {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  line-height: 1.3;
}


/* ==========================================================
   PAGES PROJET
   ========================================================== */

.projet {
  padding: 60px;
  margin-top: 20px;
}

.projet-hero {
  position: relative;
  width: 100%;
  margin-top: 90px;
}

.projet-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
}

/* En-tête (image + texte) */
.entete {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.gauche {
  flex: 1.2;
}

.gauche img {
  max-width: 100%;
  height: auto;
  display: block;
}

.droite {
  flex: 0.8;
}

/* Intro : titre + texte + colonne info */
.projet-intro {
  display: flex;
  gap: 40px;
  padding: 55px 60px;
  align-items: flex-start;
}

.projet-texte {
  flex: 3;
}

.projet-titre {
  font-size: 37px;
  font-weight: 650;
  margin-bottom: 16px;
}

.projet-accroche {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.projet-description {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
}

.projet-credits {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: grey;
}

.projet-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: 7px 0 0 30px;
  background: #fff;
  border: none;
  box-shadow: none;
}

.projet-side-bloc h3 {
  font-weight: 600;
  margin-bottom: 6px;
}

.projet-side-bloc p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
}

/* Galeries en grille */
.galerie-3portrait {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.galerie-2portrait {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.galerie-1paysage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.galerie-2paysage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.galerie-3portrait img,
.galerie-2portrait img,
.galerie-1paysage img,
.galerie-2paysage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galerie-3portrait img  { aspect-ratio: 2 / 3; }
.galerie-2portrait img  { aspect-ratio: 3 / 4; }
.galerie-1paysage img,
.galerie-2paysage img   { aspect-ratio: 16 / 9; }

/* Galeries libres (images à organiser soi-même) */
.projet-galerie-libre,
.projet-galerie-libre2 {
  display: flex;
  gap: 15px;
}

.projet-galerie-libre  { padding: 0 60px 90px 60px; }
.projet-galerie-libre2 { padding: 0 60px 15px 60px; }

.projet-galerie-libre .img1 img,
.projet-galerie-libre .img1 video,
.projet-galerie-libre .img2 img,
.projet-galerie-libre .img2 video,
.projet-galerie-libre2 .img1 img,
.projet-galerie-libre2 .img1 video,
.projet-galerie-libre2 .img2 img,
.projet-galerie-libre2 .img2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projet-galerie-libre .img2 img,
.projet-galerie-libre .img2 video,
.projet-galerie-libre2 .img2 img,
.projet-galerie-libre2 .img2 video {
  max-height: 700px;
}

/* Galeries simples */
.galerie-1 {
  display: flex;
  padding: 0 60px 60px 60px;
}

.galerie-1 img,
.galerie-1 video {
  width: 100%;
  object-fit: cover;
  display: block;
}

.galerie-2 {
  display: flex;
  padding: 0 60px 60px 60px;
}

.galerie-2 img,
.galerie-2 video {
  width: 120px;
  display: flex;
  justify-content: flex-end;
}

/* Placeholder */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vidéo : bouton son (toujours visible) */
.btn-sound {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}

.btn-sound:hover {
  background: rgba(0, 0, 0, 0.75);
}

.btn-sound svg {
  fill: #fff;
}

.btn-fullscreen {
  position: absolute;
  bottom: 20px;
  right: 70px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}

.btn-fullscreen:hover {
  background: rgba(0, 0, 0, 0.75);
}

.btn-fullscreen svg {
  fill: #fff;
}

/* Rendu en plein écran */
.projet-hero:fullscreen {
  margin-top: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projet-hero:-webkit-full-screen {
  margin-top: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projet-hero:fullscreen .hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.projet-hero:-webkit-full-screen .hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Vidéo : contrôle play/pause */
.video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Conteneur positionné pour les boutons */
.video-wrap {
  position: relative;
}

/* Rendu en plein écran */
.video-wrap:fullscreen,
.video-wrap:-webkit-full-screen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrap:fullscreen video,
.video-wrap:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* annule le "cover" de la galerie */
}

/* Carrousel */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  grid-column: 1 / -1;   /* occupe toute la largeur */
  grid-row: 1;
  min-width: 0;          /* évite que la grille s'élargisse avec les slides */
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-btn {
  font-family: 'Lazzer', Helvetica, Arial, sans-serif;
  grid-row: 2;           /* ligne sous le carrousel */
  position: static;      /* on retire le positionnement absolu */
  transform: none;
  width: 40px;
  height: 40px;
  margin-top: 10px;
  background: none;
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
}

.carousel-btn.prev { grid-column: 1; justify-self: start; }
.carousel-btn.next { grid-column: 2; justify-self: end; }

.carousel-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 8px;
}

.carousel-slide img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.principale {
  margin-bottom: 10px;
}

.secondaire {
  margin-bottom: 15px;
  margin-left: 25px;
  color: darkgrey;
}

.text-presentation {
  margin-bottom: 15px;
}

/* ==========================================================
   LECTEURS MUSIQUE
   ========================================================== */


  * { box-sizing: border-box; }

  .lil-player{
    max-width: 90px;
    display: block;
  margin: auto;
  margin-top: 35px;
  margin-bottom: 20px;
  }

  .lecteur {
    max-width: 500px;
    margin: 0 auto;
    background: var(--carte);
    border: 1px solid var(--bordure);
    overflow: hidden;
  }

  .piste {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid var(--bordure);
  }
  .piste:last-child { border-bottom: none; }

  .titre {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .piste.active .titre { font-weight: 600; color: var(--accent); }

  .bouton {
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-texte);
    cursor: pointer;
  }
  .bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .bouton svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

  /* Affiche le triangle ou les 2 barres selon l'état */
  .bouton .ico-pause { display: none; }
  .piste.joue .ico-play { display: none; }
  .piste.joue .ico-pause { display: block; }


.titre-lecteur {
    margin-bottom: 20px;
  }

/* ==========================================================
   FOOTER
   ========================================================== */

.footer-site {
  margin-top: 10px;
  background: #000;
  color: #fff;
  display: flex;
  width: 100%;
  height: 320px;
}

.footer-texte {
  flex: 1;
  padding: 60px;
  text-align: left;
}

.footer-texte p {
  margin: 0 0 16px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.footer-texte .footer-copyright {
  margin: 0;
}

.footer-liens a {
  color: #fff;
  text-decoration: underline;
}

.footer-liens a + a {
  margin-left: 1ch;
}

.footer-image {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-image img {
  height: 210px;
  width: auto;
  display: block;
}


/* ==========================================================
   MOBILE (≤ 768px)
   ========================================================== */

@media (max-width: 768px) {

.footer-liens a {
  color: #fff;
}

.lecteur {
  margin : 35px 30px 20px 35px;
}

.masonry-col {
  margin-bottom: 0px;
}

.carousel-slide {
    flex: 0 0 100%;
  }

.projet-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: 7px 0 0 0;
  background: #fff;
  border: none;
  box-shadow: none;
}

.projet {
  padding: 20px;
  margin-top: 60px;
}

.projet-hero {
  position: relative;
  width: 100%;
  margin-top: 90px;
}

.projet-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


  /* --- Navbar + menu burger --- */
  .navbar {
    padding: 0 0 0 32px;
  }

  .burger {
    display: flex;
    margin-left: auto;   /* colle le burger à droite */
    margin-right: 32px;
  }

  .navbar ul {
    display: none;       /* menu fermé par défaut */
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 32px 30px 32px;
    background: #fff;
  }

  .navbar.menu-open ul {
    display: flex;       /* menu ouvert au clic */
  }

  /* --- Accueil : colonnes empilées --- */
  .projects {
    padding: 0;
    margin-top: 90px;
  }

  .vitrine-section {
    padding: 0 0 40px 0;
    gap: 30px;
  }

  .vitrine-visuels {
    flex-direction: column;
    gap: 30px;
  }

  .vitrine-principal,
  .vitrine-secondaire {
    flex: none;
    width: 100%;
    margin-bottom: 10px;
  }

  .vitrine-legende {
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
  }

  .legende-categorie,
  .vitrine-bloc.image-droite .legende-categorie {
    flex: none;
  }

  .legende-phrase {
    flex: none;
    color: grey;
  }

 
  /* --- Page About : colonnes empilées --- */
  .contenu-about {
    flex-direction: column;
    gap: 10px;
  }

  .space-about,
  .txt-about {
    flex: none;
    padding: 20px 32px;   /* aligné sur le logo */
  }

  .space-about {
    padding: 0;           /* retire le padding pour que l'image touche les bords */
  }

  .space-about img {
    width: 100%;
    height: auto;         /* garde les proportions */
  }

  /* --- Pages projet --- */
  .projet {
    padding: 30px;
    margin-top: 50px;
  }

  .projet-intro {
    flex-direction: column;
    padding: 30px;
    gap: 24px;
  }

  .projet-galerie-libre {
    flex-direction: column;
    padding: 0 0 15px 0;
  }

  .marges-responsive {
    margin: 0 16px 0 16px;
  }

  .projet-galerie-libre2 {
    flex-direction: column;
    padding: 0 0 15px 0;
  }

  .projet-suivant {
    padding: 20px 30px 60px 30px;
  }

  .projet-suivant-lien {
    font-size: 28px;
  }

  .entete {
    flex-direction: column;
  }

  .galerie-3portrait,
  .galerie-2portrait,
  .galerie-1paysage,
  .galerie-2paysage {
    grid-template-columns: 1fr;
  }

  .galerie-3portrait img,
  .galerie-2portrait img,
  .galerie-1paysage img,
  .galerie-2paysage img {
    height: auto;
  }

  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-slider {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .slide img,
  .slide video {
    width: 100%;
    display: block;
  }

  .arrow {
    opacity: 0;
  }

  .projects-masonry {
    flex-direction: column;
  }

  .project-card:hover img {
    transform: scale(1);
  }

  /* --- Footer : sans image --- */
  .footer-site {
    height: auto;
    min-height: 0;
  }

  .footer-texte {
    padding: 40px 30px;
    font-size: 18px;
    line-height: 1.6;
  }

  .footer-texte p {
    margin-bottom: 20px;
  }

  .footer-image {
    display: none;
  }
}