/* Variables de base pour la palette de couleurs */
:root {
    --sidebar-width: 70px;
    --primary-color: #2f4f4f;
    --accent-color: #8fbc8f;
    --background-color: #f9f9f9;
    --link-color: #ffffff;
    --link-hover-color: #ffd700;
  }
  
  /* Style global */
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    display: flex;
    background-image: url('./photoindex/rouge\ des\ prés.jpg'); /* Remplace 'ton-image.jpg' par le chemin de ta photo */
    background-size: cover; /* Fait en sorte que l'image couvre tout l'écran */
    background-position: center; /* Centre l'image */
    background-attachment: fixed; /* Rend l'image fixe pendant le scroll */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    
  }
  
  /* ----- BARRE LATERALE GAUCHE ----- */
  .sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    /* background-color: var(--accent-color);  */
    background-color: rgba(32, 150, 32, 0.808);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    box-sizing: border-box;
    z-index: 1000;
    padding: 0;
    border: 1px solid;
  }
  
  .sidebar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
  }
  
  /* Titre centré verticalement (colonne gauche) */
  .sidebar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-shadow: 2px 2px 5px;
    font-size: 1.2rem;
    color: darkmagenta;
    font-style: italic;
    text-align: center;
    letter-spacing: 10px;
    font-weight: bold;
    text-decoration: underline;
    user-select: none;
  }
   
  /* ----- CONTENU PRINCIPAL ----- */
  .content-area {
    margin-left: var(--sidebar-width);
    padding: 20px;
    flex: 1;
  }
  
  .content {
    margin-bottom: 40px;
    border: 1px solid;
    border-radius: 5px;
    background-color: rgba(128, 128, 128, 0.418);
  }
  
  .content h2 {
    text-align: center;
    font-size: 2rem;
    text-shadow: 2px 2px 5px;
    color: black;
    font-style: italic;
    user-select: none;
  }
  
  .content p {
    text-align: center;
    font-style: italic;
    color: black;
    text-decoration: underline;
    user-select: none;
  }
  /* --------section 1------------   */
  .info-section1 {
    display: flex;
    margin-top: 20px;
    /* gap: 15px;  */
  }
  .text-box1 h3 {
    font-style: italic;
    color: black;
   text-decoration: underline;
   margin: 0;
  padding: 0;
  padding-top: 10px;
  line-height: 1;
}
.text-box1 p {
  font-style: italic;
  color: black;
}
  .text-box1 {
    width: 50%;
    height: 200px;
    margin-top: 0;
    padding-top: 0;
    padding-left: 10px;
    background-color: rgba(128, 128, 128, 0.459);
    border: 1px solid black;
    box-sizing: border-box;
    overflow-y: auto;
    margin-right: 10px;
    user-select: none;
  }
  .text-box1:hover {
    cursor: pointer;
  }
    .image-box1 {
    width: 200px;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid black;
    user-select: none;
  }
    .image-box1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .image-box1:hover {
    transform: scale(1.1);
    cursor: pointer;
  }
/* -----------section 2--------------  */
.info-section2 {
  display: flex;
  flex-direction: row-reverse; /* ← Inverse l'ordre des enfants */
  margin-top: 20px;
  /* gap: 15px;  */
}
.text-box2 h3 {
  font-style: italic;
  color: black;
 text-decoration: underline;
 margin: 0;
padding: 0;
padding-top: 10px;
line-height: 1;

}
.text-box2 p {
font-style: italic;
color: black;
}
.text-box2 {
  width: 50%;
  height: 200px;
  margin-top: 0;
  padding-top: 0;
  padding-left: 10px;
  background-color: rgba(128, 128, 128, 0.459);
  border: 1px solid black;
  box-sizing: border-box;
  overflow-y: auto;
  margin-left: 10px;
  user-select: none;
}
.text-box2:hover {
  cursor: pointer;
}
  .image-box2 {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid black;
  user-select: none;
}
  .image-box2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-box2:hover {
  transform: scale(1.1);
  cursor: pointer;
}
/* --------section 3------------   */
.info-section3 {
  display: flex;
  margin-top: 20px;
  /* gap: 15px;  */
}
.text-box3 h3 {
  font-style: italic;
  color: black;
 text-decoration: underline;
 margin: 0;
padding: 0;
padding-top: 10px;
line-height: 1;

}
.text-box3 p {
font-style: italic;
color: black;
}
.text-box3 {
  width: 50%;
  height: 200px;
  margin-top: 0;
  padding-top: 0;
  padding-left: 10px;
  background-color: rgba(128, 128, 128, 0.459);
  border: 1px solid black;
  box-sizing: border-box;
  overflow-y: auto;
  margin-right: 10px;
  user-select: none;
}
.text-box3:hover {
  cursor: pointer;
}
  .image-box3 {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid black;
  user-select: none;
}
  .image-box3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-box3:hover {
  transform: scale(1.1);
  cursor: pointer;
}
/* -----------section 4--------------  */
.info-section4 {
  display: flex;
  flex-direction: row-reverse; /* ← Inverse l'ordre des enfants */
  margin-top: 20px;
  /* gap: 15px;  */
}
.text-box4 h3 {
  font-style: italic;
  color: black;
 text-decoration: underline;
 margin: 0;
padding: 0;
padding-top: 10px;
line-height: 1;

}
.text-box4 p {
font-style: italic;
color: black;
}
.text-box4 {
  width: 50%;
  height: 200px;
  margin-top: 0;
  padding-top: 0;
  padding-left: 10px;
  background-color: rgba(128, 128, 128, 0.459);
  border: 1px solid black;
  box-sizing: border-box;
  overflow-y: auto;
  margin-left: 10px;
  user-select: none;
}
.text-box4:hover {
  cursor: pointer;
}
  .image-box4 {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid black;
  user-select: none;
}
  .image-box4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-box4:hover {
  transform: scale(1.1);
  cursor: pointer;
}
/* --------section 5------------   */
.info-section5 {
  display: flex;
  margin-top: 20px;
  /* gap: 15px;  */
}
.text-box5 h3 {
  font-style: italic;
  color: black;
 text-decoration: underline;
 margin: 0;
padding: 0;
padding-top: 10px;
line-height: 1;
}
.text-box5 p {
font-style: italic;
color: black;
}
.text-box5 {
  width: 50%;
  height: 200px;
  margin-top: 0;
  padding-top: 0;
  padding-left: 10px;
  background-color: rgba(128, 128, 128, 0.459);
  border: 1px solid black;
  box-sizing: border-box;
  overflow-y: auto;
  margin-right: 10px;
  user-select: none;
}
.text-box5:hover {
  cursor: pointer;
}
  .image-box5 {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid black;
  user-select: none;
}
  .image-box5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-box5:hover {
  transform: scale(1.1);
  cursor: pointer;
}
/* -----------section 6--------------  */
.info-section6 {
display: flex;
flex-direction: row-reverse; /* ← Inverse l'ordre des enfants */
margin-top: 20px;
/* gap: 15px;  */
}
.text-box6 h3 {
font-style: italic;
color: black;
text-decoration: underline;
margin: 0;
padding: 0;
padding-top: 10px;
line-height: 1;

}
.text-box6 p {
font-style: italic;
color: black;
}
.text-box6 {
width: 50%;
height: 200px;
margin-top: 0;
padding-top: 0;
padding-left: 10px;
background-color: rgba(128, 128, 128, 0.459);
border: 1px solid black;
box-sizing: border-box;
overflow-y: auto;
margin-left: 10px;
user-select: none;
}
.text-box6:hover {
  cursor: pointer;
}
.image-box6 {
width: 200px;
height: 200px;
border: 1px solid #ccc;
border-radius: 5px;
overflow: hidden;
border: 1px solid black;
user-select: none;
}
.image-box6 img {
width: 100%;
height: 100%;
object-fit: cover;
}
.image-box6:hover {
transform: scale(1.1);
cursor: pointer;
}

  /* --- Cube 3D --- */
.cube-window {
  position: absolute;
  top: 8%;  
  right: 5%;
  transform: scale(0.7);
}

.cube-link {
  display: block;
}

.cube {
  position: relative;
  width: 50px;
  height: 50px;
  
  transform-style: preserve-3d;
  animation: rotate 15s infinite linear;
}

.face {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid black;
  user-select: none;
}

.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front {
  transform: translateZ(25px);
}
.back {
  transform: rotateY(180deg) translateZ(25px);
}
.left {
  transform: rotateY(-90deg) translateZ(25px);
}
.right {
  transform: rotateY(90deg) translateZ(25px);
}
.top {
  transform: rotateX(90deg) translateZ(25px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(25px);
}

@keyframes rotate {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

 /* Modales - Style */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
}

.modal-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border: 1px solid black;
  margin-bottom: 15px;
  transition: transform 2.5s ease;
}

.modal-image:hover {
  transform: scale(1.1);
}

.modal-content h3 {
  border: 1px solid #000; /* Bordure noire d'1px tout autour */
  text-align: center; /* Centre le texte dans le h3 */
  padding: 6px;
  margin-bottom: 12px;
  color: black;
  font-style: italic;
  text-decoration: underline;
  background-color: green;
  user-select: none;
}


.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  position: relative;
  border: 1px solid black;
  max-height: 80vh;         /* Limite la hauteur de la modal */
  overflow-y: auto;  
  user-select: none;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  /* background-color: rgba(0, 0, 255, 0.479);  */
  background-color: rgba(218, 165, 32, 0.699);
  border-radius: 4px;
}

.modal-details .detail {
  margin-bottom: 10px;
}
.modal-details .detail p {
  margin: 0;
  font-weight: bold;
  color: black;
  letter-spacing: 1px;
  font-style: italic;
  text-decoration: underline;
}


/* Croix rouge */
.close {
  position: absolute;
  top: 4px;
  right: 3px;
  font-size: 24px;
  font-weight: bold;
  color: red;
  cursor: pointer;
}

.close:hover {
  transform: scale(1.5);
}

/* Zone de texte affichée (non éditable) */
.text-zone {
  border: 1px solid #ccc;
  height: 25px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 6px;
  background-color: rgba(218, 165, 32, 0.699);
  /* padding: 8px;  */
  font-style: italic;
  color: #555;
  border: 1px solid blue;
}




  /* ----- RESPONSIVE ----- */
  @media screen and (max-width: 800px), screen and (max-height: 500px) {
    :root {
        --sidebar-width: 70px;
    }
    .sidebar-title {
      font-size: 1.2rem;
      letter-spacing: 1px;
    }
    .content-area {
        padding: 10px;
    }
    .sidebar-title {
        font-size: 1rem;
    }
    .modal {
      width: 70vw;
      height: 70vh;
      left: 85px;
    }
} 

@media screen and (min-width: 1100px) {
  .text-box1 {
    width: 20%;
  }
  .text-box2 {
    width: 20%;
  }
  .text-box3 {
    width: 20%;
  }
  .text-box4 {
    width: 20%;
  }
  .text-box5 {
    width: 20%;
  }
  .text-box6 {
    width: 20%;
  }
}