@font-face {
  font-family: 'Franklin';
  src: url('fonts/franklin-gothic.ttf') format('truetype');
}

@font-face {
  font-family: 'TagDo';
  src: url('fonts/tagDo_Regular.ttf') format('truetype');
}

/* ------------------ HEADER / BANDE ACCUEIL ------------------ */
.accueil {
  height: 20vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background-color: #ffffff;
  position: relative;
}

/* Logo gauche */
.cote-gauche {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* Menu centré */
.menu-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  order: 2;
}

/* Logo TALAT à droite */
.logo-talat {
  height: 120px;
  margin-left: auto;
}

/* Logo de gauche */
.logo1 {
  width: 210px;
  height: 120px;
}

.logo12 {
  width: 100px;
  height: auto;
}

/* ------------------ BOUTON ACCUEIL ------------------ */
.menu-btn {
  display: inline-block;
  padding: 5px 10px;
  background: rgb(0, 0, 0);
  color: white;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 25px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
}

/* Menu toujours visible */
.menu-items {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 0;
  height: 0;
}

/* Conservé pour les autres pages utilisant éventuellement active */
.menu-items.active {
  display: block;
}

/* Style général des liens */
.item {
  position: absolute;
  background: none;
  color: rgb(0, 0, 0);
  padding: 0;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 25px;
  letter-spacing: -2px;
  transform: scaleY(2.5) scaleX(1.5);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Position des liens en arc */
.item1 {
  top: 5px;
  left: -250px;
}

.item2 {
  top: 18px;
  left: 0;
  transform: translateX(-50%) scaleY(2.5) scaleX(1.5);
}

.item3 {
  top: 5px;
  right: -250px;
}

/* ------------------ VIDEO FULLSCREEN ------------------ */
.video-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(0, 0, 0);
}

.left-text {
  display: flex;
  flex-direction: column;
  transform: translateX(20px);
  gap: 75px;
}

.left-text h2 {
  transform: scaleY(2.5) scaleX(1.5);
  display: inline-block;
}

.right-text {
  transform: translateX(-75px);
}

.right-text h2 {
  transform: scaleY(2.5) scaleX(1.5);
  display: inline-block;
}

.overlay-text h2 {
  font-family: 'Franklin', Arial, sans-serif;
  font-size: 60px;
  margin: 0;
}

/* ------------------ TABLEAUX / PAGE GALERIE ------------------ */
.galerie-section {
  width: 100%;
}

.carousel-tableaux {
  width: 100%;
  min-height: 500px;

  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
}

/* Nouvelle carte : uniquement l'image, le cadre et le titre */

.carte-tableau-simple {
  position: relative;
  display: block;

  width: fit-content;
  max-width: 65%;

  padding: 4px;
  border: 3px solid black;
  background-color: white;
  box-sizing: border-box;
  overflow: hidden;
}

/* Petit rectangle noir dans le coin supérieur gauche */
.titre-tableau-simple {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 2;

  padding: 8px 14px;
  background-color: black;
  color: white;

  font-family: 'Franklin', Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: uppercase;
}

/* Base commune aux six images */
.image-tableau1,
.image-tableau2,
.image-tableau3,
.image-tableau4,
.image-tableau5,
.image-tableau6 {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 700px;
  height: auto;
  object-fit: contain;
}

/* Réglages individuels disponibles pour chaque tableau */
.image-tableau1 {
  object-position: center;
}

.image-tableau2 {
  object-position: center;
}

.image-tableau3 {
  object-position: center;
}

.image-tableau4 {
  object-position: center;
}

.image-tableau5 {
  object-position: center;
}

.image-tableau6 {
  object-position: center;
}

/* ------------------ PAGE HISTOIRE ------------------ */
.histoire-section {
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.histoire-carte {
  display: flex;
  flex-direction: row;
  gap: 30px;
  border: 2px solid black;
  padding: 20px;
  max-width: 1600px;
  background-color: #fff;
}

.histoire-image img {
  width: 300px;
  height: auto;
  border-radius: 0;
}

.histoire-texte {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.histoire-texte h1 {
  font-family: 'TagDo', Arial, sans-serif;
  font-size: 60px;
  color: rgb(0, 0, 0);
  margin: 0 0 30px 0;
}

.histoire-texte p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #000;
  margin: 0;
  font-weight: bold;
}

/* ------------------ PAGE MUSIQUE ------------------ */
.image-musique-section {
  width: 100%;
  height: 13.5vh;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.image-musique-section img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  opacity: 1;
}

.rectangles-section {
  display: flex;
  justify-content: space-between;
  gap: 70px;
  padding: 20px 20px;
}

.rectangle-rouge {
  flex: 1;
  height: 90px;
  background: rgb(255, 255, 255);
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.audio-title {
  font-family: 'Franklin', Arial, sans-serif;
  font-size: 18px;
  color: rgb(0, 0, 0);
  font-weight: bold;
  margin: 0;
}

.audio-controls {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.audio-controls button {
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* ------------------ MENU PARFAITEMENT ALIGNÉ ------------------ */

.menu-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;

  width: max-content;
}

/* Permet aux liens d'être alignés avec Accueil */
.menu-items {
  display: contents;
}

/* Style commun aux quatre boutons */
.menu-btn,
.item {
  position: static;
  transform: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: 'Franklin', Arial, sans-serif;
  font-size: 35px;
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  margin: 0;
}

/* Accueil */
.menu-btn {
  order: 2;
  padding: 5px 10px;
  background-color: black;
  color: white;
  letter-spacing: 4px;
}

/* Galerie */
.item1 {
  order: 1;
  color: black;
}

/* Histoire */
.item2 {
  order: 3;
  color: black;
}

/* Musique */
.item3 {
  order: 4;
  color: black;
}

/* ------------------ MENU FIXE DANS LE MÊME ORDRE ------------------ */

.menu-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;

  width: max-content;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;

  background-color: transparent;
  color: black;

  font-family: 'Franklin', Arial, sans-serif;
  font-size: 35px;
  font-weight: bold;
  line-height: 1;

  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  border: none;
}

/* Titre correspondant à la page actuelle */
.menu-link.active {
  background-color: black;
  color: white;
}

/* ------------------ FRESQUE VIDÉO GALERIE ------------------ */
.fresque-section {
  width: 100%;
  margin: 0 0 20px 0;
  padding: 0;
  overflow: hidden;
}

.fresque-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ------------------ FRESQUE VIDÉO GALERIE ------------------ */
.fresque-section {
  width: 100%;
  margin: 0 0 20px 0;
  padding: 0;
  overflow: hidden;
}

.fresque-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Texte vertical entre les deux colonnes */
.texte-central-galerie {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(1.25);

  color: black;
  font-family: 'Franklin', Arial, sans-serif;
  font-size: 38px;
  font-weight: bold;
  letter-spacing: 30px;
  white-space: nowrap;

  transform-origin: center;
  z-index: 5;
  pointer-events: none;
}

.fleche-tableau {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 55px;
  height: 55px;

  border: 2px solid black;
  background-color: white;
  color: black;

  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

.fleche-tableau:hover {
  background-color: black;
  color: white;
}

.fleche-gauche {
  left: 40px;
}

.fleche-droite {
  right: 40px;
}

/* Le cadre conserve la taille réelle du tableau */
.carte-tableau-simple {
  position: relative;
  width: fit-content;
  max-width: 65%;

  padding: 4px;
  border: 3px solid black;
  background-color: white;
  box-sizing: border-box;
  overflow: hidden;
}

/* Images */
.image-tableau1,
.image-tableau2,
.image-tableau3,
.image-tableau4,
.image-tableau5,
.image-tableau6 {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 700px;
  height: auto;
  object-fit: contain;
}

/* Boutons audio */
.controles-audio-tableau button {
  width: 52px;
  height: 52px;
  padding: 0;

  border: 2px solid black;
  background-color: white;
  color: black;

  font-size: 23px;
  font-weight: bold;
  cursor: pointer;
}

.controles-audio-tableau button:hover {
  background-color: black;
  color: white;
}

/* ------------------ TABLEAU EN PLEIN ÉCRAN ------------------ */

.image-tableau1,
.image-tableau2,
.image-tableau3,
.image-tableau4,
.image-tableau5,
.image-tableau6 {
  cursor: zoom-in;
}

.plein-ecran-tableau {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;
  background-color: rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
}

.plein-ecran-tableau.active {
  display: flex;
}

.plein-ecran-tableau img {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

.fermer-plein-ecran {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 1001;

  padding: 0;
  border: none;
  background: none;
  color: white;

  font-size: 55px;
  line-height: 1;
  cursor: pointer;
}

/* ------------------ GALERIE HORIZONTALE ------------------ */

.galerie-section {
  width: 100%;
  overflow: hidden;
}

.carousel-tableaux {
  position: relative;
  width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: center;

  padding: 40px 90px;
}

/* Liste des tableaux sur une seule ligne */
.liste-tableaux {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scrollbar-width: none;
}

/* Cache la barre de défilement dans Chrome */
.liste-tableaux::-webkit-scrollbar {
  display: none;
}

/* Chaque tableau conserve sa propre taille */
.carte-tableau-simple {
  position: relative;
  flex: 0 0 auto;

  width: fit-content;
  padding: 4px;

  border: 3px solid black;
  background-color: white;

  box-sizing: border-box;
  overflow: hidden;
}

/* Titre dans le cadre noir */
.titre-tableau-simple {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;

  padding: 8px 14px;

  background-color: black;
  color: white;

  font-family: 'Franklin', Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 3px;

  text-transform: uppercase;
  white-space: nowrap;
}

/* Images */
.image-tableau1,
.image-tableau2,
.image-tableau3,
.image-tableau4,
.image-tableau5,
.image-tableau6 {
  display: block;

  width: auto;
  height: auto;

  max-width: 600px;
  max-height: 650px;

  object-fit: contain;
  cursor: zoom-in;
}

/* Flèches de défilement */
.fleche-tableau {
  position: absolute;
  top: 50%;
  z-index: 10;

  transform: translateY(-50%);

  width: 55px;
  height: 55px;
  padding: 0;

  border: 2px solid black;
  background-color: white;
  color: black;

  font-size: 32px;
  font-weight: bold;
  line-height: 1;

  cursor: pointer;
}

.fleche-tableau:hover {
  background-color: black;
  color: white;
}

.fleche-gauche {
  left: 20px;
}

.fleche-droite {
  right: 20px;
}