 /* 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('./photopoulet/fondpagepoulet.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;
  }
   
  /* ----- CONTENU PRINCIPAL ----- */
  .content-area {
    margin-left: var(--sidebar-width);
    padding: 5px;
    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;
  }
  
  .content p {
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    color: black;
  }


   /* --- 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;
}

.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);
  }
}
   
/* ---------photo panoramique--------------   */

.photo-bar {
  position: absolute;
  top: 250px; /* ajuste la position verticale selon ton design */
  left: 80px; /* largeur de la sidebar */
  width: calc(95vw - 70px);
  height: 250px;
  overflow: hidden;
  border: 1px solid black;
  border-radius: 120px 120px 0px 0px;
}

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


/* ------- zone de texte---------  */
.text-window {
  position: absolute;
  top: 530px;       /* ajuste ici */
  left: 80px;
  width: calc(95vw - 70px);
  z-index: 10;
}

.resizable-box {
  /* width: calc(90vw - 70px);  */
  width: 96%;
  min-height: 150px;
  max-height: 150px;
  background-color: rgb(150, 79, 144);
  border: 1px solid black;
  padding: 20px;
  /* resize: both;  */
  overflow: auto;
  overflow-y: auto;     /* permet de scroller verticalement */
  max-height: 300px; 
}
.resizable-box h4 {
  margin-top: 0;
  font-size: 1.2rem;
  color: black;
  font-style: italic;
  text-decoration: underline;
}
.resizable-box p {
  font-size: 1rem;
  color: black;
}
.resizable-box::-webkit-scrollbar {
  width: 10px;
}
.resizable-box::-webkit-scrollbar-track {
  background: rgb(150, 79, 144) ;           /* couleur de fond de la piste */
}
.resizable-box::-webkit-scrollbar-thumb {
  background-color: gray;        /* couleur du curseur */
  border-radius: 4px;
  border: 1px solid black;     /* bord du curseur pour l'intégrer au fond */
}

/* ---------photos sous premier texte----  */
.single-photo-section {
  position: absolute;
  top: 900px; /* adapte selon la hauteur voulue */
  /* left: calc(35% + 35px);  */
  left: 180px;
  /* transform: translateX(-50%);  */
  width: calc(50vw - 35px); /* on retire la moitié de la sidebar de la largeur */
  max-width: 600px;
}

.photo-box {
  width: 100%;
  /* height: auto;  */
  height: 100%;
}

.photo-box img {
  width: 112%;
  /* height: auto;  */
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

/* -------texte1 nourriture poulets------------  */
.text-section {
  position: absolute;
  top: 1220px; /* adapte selon la hauteur voulue */
  left: 80px;
  width: 80%;
}

.text-box {
  width: 100%;
  height: auto;
  background-color: rgb(128, 128, 128);
  padding-left: 10px;
  border: 1px solid black;
  height: 250px;
  overflow: auto;
}
.text-box h2 {
  color: black;
  font-style: italic;
  font-size: 15px;
  text-decoration: underline;
}

.text-box p {
  font-size: 1rem;
  line-height: 1;
  color: black;
}


/* ---------photos2 sous premier texte----  */
.single-photo-section1 {
  position: absolute;
  top: 1500px; /* adapte selon la hauteur voulue */
  /* left: calc(35% + 35px);  */
  right: 100px;
  /* transform: translateX(-50%);  */
  width: calc(50vw - 35px); /* on retire la moitié de la sidebar de la largeur */
  max-width: 600px;
}

.photo-box1 {
  width: 100%;
  /* height: auto;  */
  height: 100%;
  border: 1px solid black;
}

.photo-box1 img {
  width: 100%;
  /* height: auto;  */
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

/* -------texte2 nourriture poulets------------  */
.text-section1 {
  position: absolute;
  top: 1820px; /* adapte selon la hauteur voulue */
  right: 20px;
  width: 80%;
}

.text-box1 {
  width: 100%;
  height: auto;
  background-color: rgb(128, 128, 128);
  padding-left: 10px;
  border: 1px solid black;
  height: 250px;
  overflow: auto;
}
.text-box1 h2 {
  color: black;
  font-style: italic;
  font-size: 15px;
  text-decoration: underline;
}
.text-box1 h4 {
  color: black;
  font-style: italic;
  font-size: 15px;
  text-decoration: underline;
}

.text-box1 p {
  font-size: 1rem;
  line-height: 1;
  color: black;
}


/* ----- Logo label rouge haut de page ----- */
.logo-container2 {
  position: absolute;
  top: 30px;
  left: 15%;
}
.logo2 {
  width: 100px;
  height: auto;
}



/* ----- Logo label rouge bas de page ----- */
.logo-container1 {
  position: absolute;
  top: 3000px;
  right: 10%;
}
.logo1 {
  width: 60px;
  height: auto;
}


  /* ----- 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;
    }
    .photo-bar {
      width: calc(95vw - 70px);
    }
    .resizable-box {
      width: calc(88vw - 70px); /* 80% largeur - ~sidebar (~220px) */
      
    }
    .photo-bar {
      width: calc(85vw - 70px);
    }
    .resizable-box {
      width: calc(75vw - 70px); 
    }
    
}

@media screen and (max-width: 520px), screen and (max-height: 500px) {
  .resizable-box h4 {
    font-size: 1rem;
  }
  .resizable-box p {
    font-size: 0.7rem;
  }
  .text-box p {
    font-size: 0.7rem;
  }
  .text-box1 p {
    font-size: 0.7rem;
  }
  .text-section {
    width: 70%;
  }
  .text-section1 {
    left: 80px;
    width: 70%;
  }
  .content h2 {
    font-size: 1rem;
  }
  
  .content p {
    font-size: 0.8rem;
  }
  
}