:root {
  --font-body: 'Special Gothic Expanded One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}



/* Style général pour la page */
body {
  margin: 0;
  font-family: var(--font-body);
  background: white;
  color: black;
  text-align: center;

  /* smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

h1, h2, h3, h4, h5, h6,
button, input, textarea {
  font-family: inherit;
}


html, body {
  background-color: #d5d5d5;
}

/* Header centré avec le logo */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.0);
  z-index: 1000;
  display: flex;
  justify-content: center; /* Centrer le logo */
  align-items: center;
  padding-top: 0.7rem;
  height: 100px;
}

.header-titles {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alignement des liens à gauche */
  gap: 2rem;
  position: absolute;
  left: 4rem; /* Positionnement à gauche */
}

.page-link {
  text-decoration: none;
  /* Utilise la couleur courante (permet l'inversion) */
  color: currentColor;
  font-size: 1.1rem;
}

/* ----------------------------------------
   Inversion automatique au-dessus des médias
   (quand le header / les textes passent
   par-dessus des images)
   ---------------------------------------- */

/*
  On bascule une classe sur les éléments (logo,
  liens de menu, panneau #hover-text) dès qu'ils
  chevauchent une image.

  mix-blend-mode:difference + contenu blanc =
  contraste automatique (effet "inversé").
*/

.invert-on-media {
  color: #fff !important;
  mix-blend-mode: difference;
}

/* Les SVG en <img> sont souvent noirs : on les
   force en blanc pour que le blend "difference"
   inverse réellement le fond. */
.invert-on-media.logo,
.invert-on-media.header-icon {
  filter: invert(1);
}

.page-link.active {
  font-weight: bold;
}

/* Logo centré et avec transition */
.logo {
  display: block;
  height: 4em; /* Taille maximale du logo */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Transition pour le changement de logo */
}

/* Effet de transition lors du changement de logo */
.logo.fade-out {
  opacity: 0;
  transform: scale(0.95); /* Réduction de taille lors du changement */
}


/* Texte de survol (Design / Voix) */
#hover-text {
  position: fixed;
  top: 25%;
  left: 4rem;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease; /* Transition pour apparaitre/disparaitre */
  pointer-events: none;
  /* Doit être au-dessus des médias pour que l'inversion fonctionne */
  z-index: 900;
  text-align: left;
}

/* Lorsque le texte est activé (au survol) */
#hover-text.show {
  opacity: 1;
  transform: translateY(0);
}

/* Styles spécifiques pour chaque élément de texte */
/*
  IMPORTANT: on évite de fixer la couleur en dur ici,
  sinon avec mix-blend-mode:difference le texte peut
  "disparaître" (noir => difference(ne change rien)).
  Tout hérite de la couleur du conteneur (#hover-text).
*/
.hover-main { font-weight: bold; color: inherit; }
.hover-extra { font-weight: normal; color: inherit; }
.hover-fonction { font-weight: bold; color: inherit; }
.hover-nom { font-weight: normal; color: inherit; }
.hover-photographe { font-weight: normal; color: inherit; }

/* --- Design (nouveau format data-meta) : fiche + crédits en grille --- */
.hover-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hover-title {
      margin-top: 1em;
  font-size: 2.7em;
  font-weight: 400;
  line-height: 0.5;
  letter-spacing: 0em;
  color: inherit;
}

.hover-desc {
  font-size: 2.7em;
  font-weight: 200;
  line-height: 1.0;
  color: inherit;
}

.hover-meta-list {
  margin-top: 7.5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 15px;
}

.hover-meta {
  display: grid;
  gap: 2px;
}

.hover-meta-key {
  display: block;
  font-size: 9px;
font-weight: 400;
  opacity: 0.7;
  color: inherit;
}

.hover-meta-val {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: inherit;
}

/* Et au cas où un span aurait une couleur inline/héritée bizarre */
#hover-text {
  color: #000;
}

/* Quand on inverse, on force aussi les enfants */
.invert-on-media,
.invert-on-media * {
  color: #fff !important;
}

/* Transition pour chaque span dans hover-text */
#hover-text span {
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#hover-text.show span {
  opacity: 1;
}

/* Styles supplémentaires pour les autres éléments de texte */
.project {
  margin-bottom: 20px;
  /*
    Grille 2 colonnes:
    - images portrait / carrées: 2 max par ligne
    - images paysage: pleine largeur (span 2)
    La classe .landscape / .portrait / .square est ajoutée en JS.
  */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(1100px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
}

/* Les images paysage prennent toute la ligne */
.project img.landscape {
  grid-column: 1 / -1;
}



/* --- Design: méta inline dans la colonne de droite (toujours visible) --- */
.project .project-meta-inline {
  grid-column: 2;
  align-self: start;
  text-align: left;
  /* même “échelle” que l’ancien panneau #hover-text */
  font-size: 0.7rem;
}

@media (max-width: 700px) {
  .project .project-meta-inline {
    grid-column: 1 / -1;
  }
}
/* Sur mobile: une seule colonne */
@media (max-width: 700px) {
  .project {
    grid-template-columns: 1fr;
  }
  .project img.landscape {
    grid-column: auto;
  }
}


.audio-table audio {
  height: 30px;        /* essaie 24px–32px */
  max-height: 32px;
  margin-top: 4px;
}


/* Style pour la table des projets */
.audio-table {
  margin: 0 auto;
  width: 80%;
  border-collapse: separate;
  border-spacing: 4rem 2rem;
}

/* --- Voix: filtres + téléchargement en bulk --- */
.audio-controls {
  width: 75%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: left;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.filter-title {
  font-weight: bold;
  margin-right: 0.3rem;
}

.filter-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.bulk-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bulk-download {
  border: 1px solid #111;
  background: transparent;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.bulk-download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.download-status {
  font-size: 0.9rem;
  color: #555;
  min-width: 10ch;
}

.audio-table td {
  vertical-align: top;
  width: 50%;
}

.audio-meta-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.audio-meta-grid .left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.audio-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.audio-desc {
  font-size: 0.8rem;
  color: #000;
  padding-left: calc(1rem + 2.3rem);
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
}

.audio-meta-grid .right {
  text-align: right;
  flex: 1;
}

.audio-lang {  
  font-size: 0.7rem;
        font-weight: 600;

}

.audio-accent {
  font-size: 0.7rem;
  color: #000;
}

/* Footer photo block */
.footer-photo-block {
  text-align: left;
  padding-left: 5rem;
  margin-bottom: 2rem;
}

.footer-photo {
  border-radius: 0px;
  cursor: pointer;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.0);
  text-align: center;
  padding-bottom: 5rem;

  /* IMPORTANT: footer must not block clicks on content behind it */
  pointer-events: none;
  z-index: 50;
}

/* Re-enable pointer events for any interactive elements inside the footer (if any) */
footer a,
footer button,
footer input,
footer label {
  pointer-events: auto;
}

.footer-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
  padding-left: 5rem;
}

/* Main content */
main {
  padding-top: 140px;
  max-width: 1200px;
  margin: 0 auto;

  /* Space so the fixed footer never overlaps the last row of content */
  padding-bottom: 10rem;
}

/* About layout */
.about {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  padding-left: 5rem;
  padding-right: 5rem;
}

.left-text {
  flex: 1;
  max-width: 640px;
}

.right-photo {
  flex: 1;
  min-height: 700px;
  background-image: url('/media/portrait3.png');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Texts in About Page */
.text-line {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  text-align: left;
}

/* À propos: note en très petit */
.text-line.tiny {
  font-size: 0.7rem;
  margin-top: -0.5rem;
}


.text-line.bold {
  font-weight: bold;
}

.text-line.normal {
  font-weight: normal;
  color: black;
}

.agency-links {
  margin-top: 2rem;
  text-align: left;
      font-weight: 400;
  transition: text-shadow 0.25s ease;
}
    .agency-link:hover {
  text-shadow: 0.35px 0 0 currentColor;

}

.agency-links a {
  display: block;
  text-decoration: pointer bold;
  color: black;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.phone {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: left;
}


/* Responsive */
@media (max-width: 800px) {
  header {
    height: 92px;
    padding-top: 0.75rem;
  }

  .logo { height: 70px; }

  .header-titles {
    left: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  main {
    padding-top: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #hover-text {
    display: none;
  }

  .about {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .right-photo {
    min-height: 280px;
    background-position: center;
  }
}
.design-gallery .project .project-media {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.design-gallery .project .project-media > img { grid-column: auto !important; }
.design-gallery .project .project-media > img.is-landscape { grid-column: 1 / -1 !important; }



\.audio-name { font-family: var(--font-title); }

\.hover-title { font-family: var(--font-title); }

/* Mobile : logo à droite, avec vrai espace + plus petit */
@media (max-width: 800px) {
  header {
    justify-content: flex-start; /* on annule le centrage */
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .logo {
    margin-left: auto; /* pousse le logo à droite */
    height: 56px;      /* plus petit */
    transition: margin 0.4s ease, height 0.4s ease;
  }
}
/* Design: apparition douce images + textes */
.project img,
.project .project-meta-inline {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project.is-visible img,
.project.is-visible .project-meta-inline {
  opacity: 1;
  transform: translateY(0);
}




main, footer {
  position: relative;
  z-index: 10;
}



header,
main,
footer {
  position: relative;
  z-index: 10;
}

/* Lottie: keep header fixed above background */
header {
  position: fixed;
  z-index: 1000;
}
/* Background animé global (GIF) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/media/bg.gif") center / cover no-repeat;
  opacity: 0.7;           /* ajuste */
  z-index: 0;
  pointer-events: none;
}

/* Design : coins arrondis des images */
.project img {
  border-radius: 10px;   /* ajuste la valeur */
  overflow: hidden;      /* sécurité */
}
/* Quand on hover une image, tous les projets passent en gris */
.design-gallery:hover .project img {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

/* Sauf l’image hover */
.design-gallery img:hover {
  filter: grayscale(0%);
}