@import url('https://fonts.googleapis.com/css?family=Poppins:900i');

* {
  box-sizing: border-box;
}
html, body { 
  max-width: 100% !important; 
  overflow-x: hidden !important; 
} 

body
{
  background-image: url('IMG/fancy-cushion.jpg');
  background-attachment: fixed;
width: 100vw;
}
.bodypp {
  background-color: #f9f9f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.7;
}
#gallery-container {
  max-width: 1182px;
  color: rgb(230, 213, 213);
}

.img-square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}


.img-square:hover {
  transform: scale(1.05);
}

.empty-square {
  height: 252px;
  aspect-ratio: 1 / 1;
  background-color: #444;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.border_image {
  border: #000 solid 4px;
  border-radius: 10%;
}

p{

	color: black;
	font-family: Gill Sans Extrabold, sans-serif;
}
nav p{
  font-size: 8pt;
}

#magrimage{
  border-radius: 10%;
}
.navbar-toggler-icon{
  filter: invert(1);
}
.dropdown-divider {
  filter: invert(1);
}

.matrix{
  margin:0 auto;
  width: 1040px;
  height: 824px;
background-image: url('IMG/matrix.png');
background-repeat: no-repeat;
background-size: cover;
position: relative;
pointer-events: none;
}

.pilule-container {
  position: absolute;
  text-align: center;
  width: 60px;
  transition: transform 0.3s ease-in-out;
  pointer-events: all;
}

.pilule-container img {
  width: 100%;
  display: block;
}


#pgauche-container {
  left: 21%;
  top: 72%;
}

#pdroite-container {
  left: 72%;
  top: 72%;
}

.pilule-container::after {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  background: black;
}

#pgauche-container::after {
  color: #F20;
}

#pdroite-container::after {
  color: #07F;
}

.pilule-container:hover {
  transform: scale(1.1);
}

.pilule-container:hover::after {
  opacity: 1;
  bottom: -40px;
}
.styled {
    border: 0;
    line-height: 2.5;
    padding: 0 20px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 10px;
    background-color: rgba(127, 0, 255, 1);
    background-image: linear-gradient(to top left,
                                      rgba(0, 0, 0, .2),
                                      rgba(0, 0, 0, .2) 30%,
                                      rgba(0, 0, 0, 0));
    box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6),
                inset -2px -2px 3px rgba(0, 0, 0, .6);
}

.styled:hover {
    background-color: rgba(148, 0, 198, 1);
}

.styled:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}

.wrapper {
  display: flex;
  justify-content: center;
}
.wrapper-center{
  position: relative;
  bottom: 200px;
}
main {
  height: 100vh;
  width: 100%;
}

.cta {
    display: flex;
    padding: 10px 45px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    color: white;
    background: #6225E6;
    transition: 1s;
    box-shadow: 6px 6px 0 black;
    transform: skewX(-15deg);
    }

    
    #feuille
{
max-width: 1080px;
margin:0 auto;
text-align: center;
background-color: white;
box-shadow: inset 10px 10px 12px #222,
                inset -10px -10px 12px #222;
}
#feuille10 {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

#milieu{
  width: 860px;
  margin: 0 auto;
}

#milieu2{
  width: 860px;
  margin: 0 auto;
}

#milieu h3{
  text-align: justify;
}

#milieu2 h3{
  text-align: center;
} 

.styled:hover {
    background-color: rgba(0, 0, 225, 1);
}

.styled:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, .6),
                inset 2px 2px 3px rgba(0, 0, 0, .6);
}


.wrapper {
  display: flex;
  justify-content: center;
}

.cta {
    display: flex;
    padding: 10px 45px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    color: white;
    background: #000;
    transition: 1s;
    box-shadow: 6px 6px 0 #444;
    transform: skewX(-15deg);
}

.vidbg {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.vidbg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -100;
  pointer-events: none;
}

.cta:focus {
   outline: none; 
}

.cta:hover {
    transition: 0.5s;
    box-shadow: 10px 10px 0 #AAA;
}

.cta span:nth-child(2) {
    transition: 0.5s;
    margin-right: 0px;
}

.cta:hover  span:nth-child(2) {
    transition: 0.5s;
    margin-right: 45px;
}

  span {
    transform: skewX(15deg) 
  }

  span:nth-child(2) {
    width: 20px;
    margin-left: 30px;
    position: relative;
    top: 12%;
  }
  

path.one {
    transition: 0.4s;
    transform: translateX(-60%);
}

path.two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.cta:hover path.three {
    animation: color_anim 1s infinite 0.2s;
}

.cta:hover path.one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.cta:hover path.two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}


@keyframes color_anim {
    0% {
        fill: white;
    }
    50% {
        fill: #AAA;
    }
    100% {
        fill: white;
    }
}

footer {
  justify-content: center;
  text-align: center;
  padding: 5px;
  background: linear-gradient(#000, #222);
}

footer p{
  color: #fff;
}

.border_image{
  border: #000 solid 4px;
}


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1050; /* Ensure it's above other content */
}

/* Show lightbox when its ID is targeted in the URL (via href="#id") */
.lightbox:target {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%; /* Max width for the image within the lightbox */
  max-height: 90%; /* Max height for the image within the lightbox */
  display: block;
  margin: auto; /* Center the image */
  border: 5px solid #fff; /* Optional: white border around the image */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Optional: subtle shadow */
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox .close:hover {
  color: #ccc;
}

.shc-logo{
  border: #444 solid 3px;
  border-radius: 10px;
  margin-top: 20px;
  width: 60%;
}

.img-hover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.img-hover-wrap img {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
  width: 100%;
}

.hover-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.img-hover-wrap:hover img {
  transform: scale(1.05);
  filter: blur(2px) brightness(0.8);
}

.img-hover-wrap:hover .hover-overlay {
  opacity: 1;
}

.hover-text {
  color: white;
}

.hover-text p {
  margin-bottom: 10px;
  font-weight: 500;
}

.hover-text .btn {
  background-color: black;
  color: white;
  border: none;
  transition: background 0.2s ease;
}

.hover-text .btn:hover {
  background-color: #333;
}

.gallery-wrapper {
  max-width: 95vw;
  margin: 0 auto;
}

.imgpp {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.imgpp:hover {
  transform: scale(1.03);
}

.card-projet {
  background-color: white;
  border: none;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.nav-projet {
  position: fixed;
  top: 100px; /* laisse la place pour ton header */
  left: 0;
  width: 220px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 1rem;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-projet a {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  transition: all 0.2s;
}

.nav-projet a:hover {
  color: #0056b3;
  text-decoration: underline;
}

 .bonus-section {
      background-color: #222; 
      padding: 50px 0; 
      text-align: center;
    }

    .bonus-section h2,
    .bonus-section h3,
    .bonus-section a {
      color: #fff; /* White text for readability */
      margin-bottom: 20px; /* Spacing below headings and links */
    }

    .bonus-section .bonus-links {
      display: flex;
      justify-content: center; /* Center the links horizontally */
      gap: 30px; /* Space between the links */
      flex-wrap: wrap; /* Allow links to wrap on smaller screens */
    }

    .bonus-section .bonus-links a {
      text-decoration: none; /* Remove underline from links */
      font-weight: bold; /* Make links bold */
    }
.bonus-section .bonus-links a h3:hover{
  color: #0056b3;
  text-decoration: underline;
}
    .bonus-section .bonus-images {
      display: flex;
      justify-content: center; /* Center the images horizontally */
      gap: 20px; /* Space between images */
      flex-wrap: wrap; /* Allow images to wrap on smaller screens */
      margin-top: 30px; /* Space above images */
    }

    .bonus-section .bonus-images img {
      border-radius: 8px; /* Slightly rounded corners for images */
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
      max-width: 100%; /* Ensure images are responsive */
      height: 200px; /* Fixed height for consistency */
      object-fit: cover; /* Crop images to fit the fixed height */
    }

@media screen and (max-width: 576px) {

  .matrix{
    width: 346.7px;
    height: 274.7px;
  }
  .pilule-container {
    width: 30px;
    transition: transform 0.3s ease-in-out;
    pointer-events: all;
  }
  .pilule-container::after {
    opacity: 1 !important;
    bottom: -30px !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    background: rgba(0, 0, 0, 0.8) !important;
  }
  
  .pilule-container img {
    width: 100%;
    display: block;
  }
  
  
  #pgauche-container {
    left: 20%;
    top: 72%;
  }
  
  #pdroite-container {
    left: 72%;
    top: 72%;
  }
  
  #feuille{
    max-width: 100%;
  }
  #milieu{
    max-width: 80%;
  }
  
  #milieu2{
    max-width: 80%;
  }
  .achtung a{
    text-decoration: none;
    color: #07F;
  }
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
  }
  
  .dropdown-menu {
    background-color: #333;
  }
  
  .dropdown-item {
    color: white ;
  }
  
  #milieu h3{
  font-size: 12pt;
  }
  .gallery-wrapper {
    max-width: 70vw;
    margin: 0 auto;
  }
  
  .nav-projet {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
  }
  
  .content-wrapper {
    margin-left: 0 !important;
  }
  
    .content-wrapper {
      margin-left: 0 !important;
    }
  .shc-logo{
    width: 90%;
  }
  }