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


body {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: 10% 80% 10%; /* Header: 10%, Main: 80%, Footer: 10% */
    width: 100vw;
    height: 100vh; /* Ensure the body spans the full viewport height */
    font-family: 'Geist', sans-serif;
    overflow: hidden; /* Prevent scrolling */
    /* 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;
    height: 100%; /* Full height of their respective grid row */
}

main {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    height: 100%; /* Full height of the main grid row */
    position: relative;
}

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

.columns-container p {
    grid-column: 3 / span 3; /* Start at the 3rd column and span 3 columns */
    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 */
    font-size: 1.2rem; /* Adjust font size as needed */
    color: #000; /* Adjust text color */
    padding: 10px 20px; /* Optional: Add padding for better readability */
}

.columns-container img {
    grid-column: 3 / span 3; /* Each column takes up equal space */
    width: 65vh;
    height: 65vh; /* Adjust height for visibility */
}

.columns-container a {
    grid-column: 3 / span 3; /* Start at the 3rd column and span 3 columns */
    align-self: center; /* Center vertically within the row */
    z-index: 10; /* Ensure the text appears above the columns */
    text-align: left; /* Center the text */
    font-size: 1.2rem; /* Adjust font size as needed */
    color: #000; /* Adjust text color */
    padding: 10px 0; /* Optional: Add padding for better readability */
    text-decoration: none; /* Remove underline */
}

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





@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.075); /* 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 */
    }
}

h1 {
    font-size: clamp(4rem, 80vw, 4.25rem); /* Responsive font size */
    font-weight: 700; /* Bold font weight */
    max-width: 90%; /* Ensure the text doesn't exceed 90% of the viewport width */
    word-wrap: break-word; /* Ensure long words break to the next line */
    line-height: 1em;
}


h2 {
    font-size: clamp(3rem, 5vw, 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 */
    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 */
}

nav {
    background-color: white;
    text-align: center;
    text-transform: uppercase;
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(7, 1fr); /* 7 equal columns */
    align-items: center;
    width: 100%; /* Occupy full width */
    height: 50px;
    font-family: forma-djr-text, sans-serif;
    font-size: 18px;
    font-weight: 400;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    border-top: 2px solid black; /* Add a black outline at the top of the menu */

}

nav a {
    color: #222;
    text-align: center;
    text-decoration: none;
    border-right: 2px solid black; /* Add a black outline between sections */
    transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth hover effect */
    line-height: 50px; /* Match the height of the nav */

}

nav a:nth-child(-n+6) {
    grid-column: span 2; /* Each link occupies 2 columns */
}

nav a.eo {
    grid-column: span 1; /* EO link occupies 1 column */
    height: 50px;
}

nav a:last-child {
    border-right: none; /* Remove the border from the last section */
}

nav a:hover {
    background-color: var(--yellow); /* Change background to yellow on hover */

}

nav a:active {
    background-color: var(--yellow); /* Change background to yellow on hover */

}

@media (max-width: 768px) {
    nav {
        display: none;

        flex-direction: column; /* Stack items vertically */
        height: auto; /* Adjust height to fit content */
        width: 100vw; /* Ensure nav spans the full viewport width */
        z-index: 1; /* Lower z-index to place it behind the contact form */


    }

    nav a {
        border-right: none; /* Remove the right border */
        border-bottom: 1px solid black; /* Add a bottom border for separation */
        text-align: center; /* Center the text */
        width: 100%; /* Ensure each link spans the full width */
        box-sizing: border-box; /* Include padding in the width calculation */
    }

    nav a:active {
        background-color: var(--yellow); /* Change background to yellow on hover */

    }
    nav a:last-child {
        border-bottom: none; /* Remove the border from the last item */
    }
}

/* Hamburger container styles */
.hamburger-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100vw;
    background-color: white;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Fix it at the top of the viewport */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure it appears in front of other elements */

}

.hamburger-container img {
    height: 40px;
}



.hamburger-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 30px;
    margin-right: 35px;
}

.hamburger-icon div {
    height: 4px;
    background-color: black;
    border-radius: 2px;
}


/* Mobile menu styles */
.mobile-menu {
    display: none; /* Hide by default */
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: fixed; /* Fix it at the top of the viewport */
    top: 70px;  /* Below the hamburger container */
    width: 100vw;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Ensure it appears above other elements */
}

.mobile-menu a {
    background-color: white; /* Default background */
    padding: 25px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: black; /* Ensure text is visible */
    /* Default background */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: var(--yellow); /* Yellow hover effect */
}

.mobile-menu a:active {
    background-color: var(--yellow); /* Yellow hover effect */
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hide the menu in larger screens */
@media (min-width: 769px) {
    .hamburger-container,
    .hamburger-menu,
    .mobile-menu {
        display: none;
    }
}

/* Carousel title styles */
.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
    width: 100%; /* Ensure the title spans the full width */
    bottom: 0; /* Place it at the top of the main content */
    line-height: 1em;
}

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

.carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: max-content; /* Allow the carousel to extend beyond the viewport */
    overflow: hidden; /* Hide content outside the container */
}

.carousel-item {
    position: relative; /* Enable positioning for the text overlay */
    object-fit: cover;
    margin: 0; /* Remove any space between items */
    

}

/*
.carousel-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
*/

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fills the item */
    border: #000 solid 0px; /* Add a border around the text */

}

/* Ensure all carousel media (images or video) have the same aspect ratio and fill the item */
.carousel-media {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border: #000 solid 0px; /* Add a border around the text */
}

.carousel-text {
    display: none; /* Hide the text by default */
    width: 100%; /* same size of the image  */
    height: 100px;
    position: absolute;
    bottom: 0; /* Position the text at the bottom of the image */
    background-color: rgb(0, 0, 0, 0.8); /* Semi-transparent background */
    color: white; /* Text color */
    padding: 40px 10px; /* Add padding around the text */
    font-size: 1.2rem; /* Adjust font size */
    font-weight: 700; /* Normal font weight */
    z-index: 2; /* Ensure the text is above the image */
    box-sizing: border-box; /* Include padding in the width calculation */
    text-align: center;
    border-top: #000 solid 0px; /* Only top border */

}

.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-bio{
    border: 2px solid black; /* Add visible border */
    background-color: white;
}
/* Carousel controls for desktop */
.carousel-controls {
    position: fixed; /* Fixed position for the controls */
    bottom: 70px; /* Place the controls at the bottom of the viewport */
    left: 122px; /* Place the controls near the right edge */
    display: flex;
    gap: 10px; /* Add spacing between buttons */
    z-index: 10; /* Ensure the buttons are above the carousel */
}

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

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

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

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

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

    }

    .carousel-title {
        margin-bottom: 15px; /* Adjust spacing below the title */
        text-align: center; /* Center the title horizontally */
        margin-top: 20px; /* Add spacing above the title */
        position: relative; /* Ensure it stays at the top */
        width: 100%; /* Ensure it spans the full width */
        padding-left:20px; /* Add padding to the left */
    }

    .carousel-text {
        display: block;
        width: 100%; /* Ensure the text matches the width of the image */
        text-align: center; /* Center the text */
        text-decoration: none; /* Remove underline */
        height: 40px;
        padding: 5px 10px; /* Add padding around 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 */
}



#contact {
    padding: 70px;
    background-color: var(--yellow);
    border-top: 2px solid #ddd;
    position: fixed; /* Fixed position for the contact form */
    bottom: 0; /* Align to the bottom of the viewport */
    margin-bottom: 52px; /* Space below the contact form */
    width: 100vw; /* Full width */
    z-index: 1000; /* Ensure it appears above other elements */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

#contact h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: center;
    margin-left: 25px;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

#contact label {
    font-weight: bold;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#contact button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    #contact {
        position: fixed; /* Make the contact form cover the entire screen */
        top: 0;
        left: 0;
        width: 100vw; /* Full width */
        height: 100vh; /* Full height */
        background-color: var(--yellow);
        z-index: 2; /* Ensure it appears above other elements */
        overflow-y: auto; /* Allow scrolling if content overflows */
        padding: 20px;
        box-sizing: border-box; /* Include padding in width/height */
    }

    #contact h2 {
        font-size: 1.5rem; /* Adjust heading size for mobile */
        text-align: center;
        margin-bottom: 20px;
    }

    #contact form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 100%; /* Use full width */
        margin: 0 auto;
    }

    #contact input,
    #contact textarea {
        width: 100%; /* Full width for inputs and textarea */
        padding: 10px;
        font-size: 1rem;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }

    #contact button {
        padding: 10px;
        font-size: 1rem;
        color: white;
        background-color: black; /* Black button */
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    #contact button:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: black;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-button:hover {
        background-color: red; /* Change color on hover */
    }
}



