:root {
  --yellow: #fdfd70;
  --gray:#c2c2c2;
  }

body {
    margin: 0;
    padding: 0;
    grid-template-rows: 10% 80% 10%; /* Header: 10%, Main: 80%, Footer: 10% */
    width: 100vw;
    font-family: 'Geist', sans-serif;
    /* Crée un effet de colonnes avec des lignes */
    background: #ffffff00 repeating-linear-gradient(
            to right,
            rgba(0, 0, 0, 0.15) 0, /* Couleur de la ligne */ rgba(0, 0, 0, 0.15) 1px, /* Épaisseur de la ligne */ transparent 1px, /* Espace après la ligne */ transparent calc(100% / 7) /* Largeur d'une colonne */
    );
}

/* Parent containers */
header, footer {
    position: relative; /* Ensure letters are positioned relative to the header/footer */
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    position: relative;
}

.columns-container {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
    width: 100%; /* Full width */
    position: relative; /* Ensure the container is the reference for absolute positioning */
}

main.columns-container {
    padding-bottom: 40px; /* Adjust value as needed */
}

.images-container {
    display: grid;
    grid-column: 2 / span 5; /* Start at the first column and span all 7 columns */
    width: 100%; /* Ensure it spans the full width */
    height: auto; /* Adjust height dynamically */
    margin-top: 100px;;
    position: relative; /* Enable positioning for child elements */
    overflow: hidden; /* Hide content outside the container */
    z-index: 1; /* Ensure it appears above other elements */

}

.images {
    display: flex;
    transition: transform 0.3s ease-in-out;
    overflow: hidden; /* Hide content outside the container */
    gap: 15px; /* Add space between items */

}

.images img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fills the item */
}

.image-projet {
    position: relative;
    object-fit: cover;
    gap: 15px; /* Add space between items */
    gap:15px; /* Add space between items */
    border: 2px solid black; /* Add visible border */
}


.main-content-text {
    grid-column: 2 / span 5; /* Start at the 3rd column and span 3 columns */
    text-align: left; /* Center the text */
    font-size: 1.2rem; /* Adjust font size as needed */
    color: #000; /* Adjust text color */
    padding: 10px 20px; /* Optional: Add padding for better readability */
    border: 2px solid black; /* Add visible border */
    background-color: white;
    margin: -15px 15px;
    z-index: 1;
    max-width: 1180px;
}

.main-content-text p {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    font-size: 1.2rem; /* Adjust font size as needed */
    color: #000; /* Adjust text color */
    line-height: 1.5; /* Adjust line height for better readability */
}

.main-content-text a {
    color: #000; /* Text color for the link */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover effect */
}


.column {
    flex: 1; /* Each column takes up equal space */
    border-left: 1px solid rgba(0, 0, 0, 0.15); /* Add visible left border */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%; /* Adjust height for visibility */
}


.retour-controls {
    display: flex;
    margin-left: 15px;
    margin-bottom: 15px;;
}

.retour-btn {
    color: black;
    background-color: white;
    border: solid 2px black; /* Add a border around the button */
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.retour-btn:hover {
    background-color: var(--yellow);
}


@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Enable vertical scrolling */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }


    .columns-container {
        display: grid; /* Use grid layout */
        grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
        width: 100%; /* Full width */
        height: auto; /* Adjust height dynamically */
        position: relative; /* Ensure the container is the reference for absolute positioning */
        margin-top: 20px; /* Add spacing between the carousel and columns */
    }

    .column {
        flex: 1; /* Each column takes up equal space */
        border-left: 1px solid rgba(0, 0, 0, 0.15); /* Add visible left border */
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 100%; /* Adjust height for visibility */

    }

    .columns-container p {
        grid-column: 2 / span 5; /* Fill 5 center columns on smaller screens */
        grid-row: 1; /* Place it in the first row */
        align-self: center; /* Center vertically within the row */
        justify-self: center; /* Center horizontally within the columns */
        z-index: 10; /* Ensure the text appears above the columns */
        text-align: left; /* Center the text */
    }

    .main-content-text {
        grid-column: 1 / span 7; /* Start at the first column and span all 7 columns */

        text-align: left; /* Center the text */
        font-size: 1.2rem; /* Adjust font size as needed */
        color: #000; /* Adjust text color */
        padding: 10px 20px; /* Optional: Add padding for better readability */
    }
}


h1 {
    font-size: clamp(4rem, 80vw, 4.25rem); /* Responsive font size */
    font-weight: 700; /* Bold font weight */
    text-align: left; /* Align the text to the left */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    white-space: nowrap;
    line-height: 1.1em;

}

h2 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    text-align: left; /* Align the text to the left */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1.1em; /* Adjust line height for better readability */
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    text-align: left; /* Align the text to the left */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */
    white-space: nowrap;
}

h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem); /* Responsive font size */
    font-weight: 600; /* Normal font weight */
    text-align: left; /* Align the text to the left */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */
       
}

.highlight {
    background-color: var(--yellow);
    padding: 0 0.2em;
}

h5 {
    font-size: clamp(1rem, 2vw, 1.2rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    text-align: left; /* Align the text to the left */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */
}

h6 {
    font-size: clamp(0.8rem, 1.5vw, 1rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    text-align: left; /* Align the text to the left */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */
}

@media (min-width: 768px) {
    h1 {
        word-wrap: break-word; /* Ensure long words break to the next line */

    }
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    word-wrap: break-word; /* Ensure long words break to the next line */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    word-wrap: break-word; /* Ensure long words break to the next line */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */

}

h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem); /* Responsive font size */
    font-weight: 600; /* Normal font weight */
    word-wrap: break-word; /* Ensure long words break to the next line */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    line-height: 1em; /* Adjust line height for better readability */

}

p {
    font-size: clamp(1rem, 3vw, 1.5rem); /* Responsive font size */
    font-weight: 400; /* Normal font weight */
    word-wrap: break-word; /* Ensure long words break to the next line */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    margin-top: 0; /* Remove extra space above the p */
}

/* Mobile view: Vertical layout */
@media (max-width: 768px) {
    .images-container {
        display: flex; /* Use flexbox for the carousel */
        flex-direction: column; /* Stack items vertically */
        grid-column: 1 / span 7; /* Start at the first column and span all 7 columns */
        align-items: center; /* Center items horizontally */
        width: 100%; /* Full width for mobile */
        overflow: visible; /* Allow all content to be visible */
    }

    .images {
        display: flex;
        flex-direction: column; /* Stack carousel items vertically */
        gap: 20px; /* Add space between items */
    }

    .image-projet {
        max-width: 100vw;
        max-height: 100vh;
        object-fit: cover; /* Ensure the image fits within the container */
        margin: 0 auto; /* Center the items horizontally */
        border: none;
    }


    .carousel-text {
        display: block;
        width: 100%; /* Ensure the text matches the width of the image */
        text-align: center; /* Center the text */
    }

    .carousel-item:hover .carousel-text {
        display: block; /* Show the text when the user hovers over the carousel item */
    }

    .carousel-text a {
        color: rgb(0, 0, 0); /* Text color for the link */
        text-decoration: none; /* Remove underline */
        transition: color 0.3s ease; /* Smooth hover effect */
    }

    .carousel-controls {
        display: none; /* Hide carousel controls on mobile */
    }
}

.hidden {
    display: none; /* Hide the element */
}

* {
  box-sizing: border-box;
}

/* Lightbox */
.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 15%;
}

/* The Modal (background) */
.modal {
  display: flex;
  position: fixed;
  z-index: 2;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0, 0.9);  
 
}

/* Modal Content */
.modal-content {  
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 900px;   
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;          /* Prevents image from overflowing modal */
  margin: 0 auto;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.8s;
  animation-name: zoom;
  animation-duration: 0.8s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0.75)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0.75)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 1rem;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

img {
  margin-bottom: -4px;
}

.caption-container {
  text-align: center;
  padding: 2px 16px;
  color: white;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}