body {
    /* Initialisation variables */
    --background: #35393c;
    --background-sec: #42474a;
    /* navbar et zone de texte */
    --white: #ffffff;
    --black: #000000;
    --main: #42858c;
    --secondary: #e07a5f;

    margin: 0;
    padding-top: 70px;
    /* Pour compenser la navbar fixe et qu'il y ait rien de caché derrière*/
    background-color: var(--background);
    color: var(--white);
    font-family: Ubuntu, Helvetica, sans-serif
}

/* Style de la navbar */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Pour que la navbar soit au premier plan */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--background-sec);
}

.site-name {
    position: absolute;
    top: 29px;
    left: 72px;
    color: var(--white);
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
    font-family: 'Arial Black', sans-serif;
}

.logo {
    display: block;
    margin: 10px;
    height: 70px;
}

.nav-links {
    display: flex;
    flex: auto;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-right: 80px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 30px;
    margin: 5px 0;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: var(--main);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.active-page {
    border-left: 5px solid var(--secondary);
    border-top: 5px solid var(--secondary);
    background-color: var(--main);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style de la page*/

.page-title-left,
.page-title-right {
    display: flex;
    justify-content: center;
    margin: 40px 100px;
    font-size: 2em;
}

.page-title-left h1 {
    margin: 0;
    padding: 20px 20px;
    border-left: 10px solid var(--main);
    background-color: var(--background-sec);
    border-radius: 8px;
}

.page-title-right h1 {
    margin: 0;
    padding: 20px 20px;
    border-right: 10px solid var(--main);
    background-color: var(--background-sec);
    border-radius: 8px;
}

.section-container {
    margin: 40px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.text-container {
    max-height: calc(30vw - 40px);
    max-width: 30vw;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: var(--background-sec);
    border-bottom: solid 5px var(--secondary);
    border-right: solid 5px var(--secondary);
    overflow: auto;
}

.text-container p {
    font-family: 'Prompt', sans-serif;
}

.text-container a {
    color: var(--main);
    font-weight: bold;
}

.section-container img {
    height: 30vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-tile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: min-content;
}

.content-tile .text-container {
    text-align: center;
}

/* Style du footer */

footer {
    display: flex;
    margin-top: 20px;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative;
}

.footer-button a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 30px;
    margin: 5px 0;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.footer-button a:hover {
    background-color: var(--main);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles spécifiques à certaines pages */

/* Page d'accueil */

#home-image img {
    width: 100vw;
    height: calc(100vh - 70px);
    object-fit: cover;
    border-radius: 0;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#home-text {
    display: flex;
    flex-direction: column;
    position: absolute;
    justify-content: center;
    top: 225px;
    left: 50%;
    transform: translateX(-50%);
    gap: 50px;
}

#home-title,
#home-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    background-color: #0000000c;
    border-radius: 8px;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

#home-title {
    font-size: 1.6em;
    max-width: 70%;
}

#home-subtitle {
    font-size: 1.2em;
}

.home-page .section-container .text-container {
    max-width: 30vw;
}


/* Page 1 */

.large-img {
    width: 600px;
    height: 400px;
    object-fit: cover;
}

.centered-margin {
    margin: 0 auto;
    margin-top: 80px;
    padding: 20px;
    background-color: var(--background-sec);
    border-bottom: var(--secondary) solid 5px;
    border-right: var(--secondary) solid 5px;
    width: fit-content;
    border-radius: 8px;
}

.img-client {
    transition: all 0.3s;
}

.img-client:hover{
    cursor: pointer;
    transform: scale(1.03) ;
}

/*-------*/

.carousel {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-item {
    min-width: 600px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    opacity: 0.6;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
}

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

.carousel-nav {
    position: absolute;
    width: 100%;
    padding: 20px 0;
    bottom: 0;
    left: 0;
    text-align: center;
}

.carousel-text {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    max-width: 70%;
    text-align: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-text.show {
    opacity: 1;
}

.carousel-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    cursor: pointer;
}

.carousel-button-active {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-description {
    max-width: 800px;
    max-height: none;
    margin: 30px auto;
    text-align: center;
}

.text-big {
    font-size: 4em;
    font-weight: bold;
}
.content-end {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-end * {
    display: flex;
}

.foot {
    display: flex;
    flex-direction: column;
    margin: 50px auto;
}

/* Page 2 */

.second-page #main-paragraph {
    max-width: 60vw;
}

.second-page .table-image {
    width: 400px;
    height: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.second-page .table-image:hover {
    transform: scale(1.05);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: popupZoom 0.3s ease;
}

@keyframes popupZoom {
    from {
        transform: scale(0.7);
    }
    to {
        transform: scale(1);
    }
}

.popup-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: var(--secondary);
}

/* page d'accueil*/

.parent {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
}
.text-container-index {
    max-height: calc(30vw - 40px);
    max-width: 70vw;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: var(--background-sec);
    border-bottom: solid 5px var(--secondary);
    border-right: solid 5px var(--secondary);
    overflow: auto;
}
#home-subtitle {
    width: 100%;
}
.child-container {
    justify-content: flex-start;
    align-items: center;
    height: 75vh;
    display: flex;
}
.child-img{
    position: absolute;
    opacity: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
    border: var(--secondary) solid 3px;
}

.sous-parent-image {
    position: sticky;
    top: 25vh;
    height: 50vh;
    width: 35vw;
    align-self: flex-start;


}

.child-img.active {
    opacity: 1;
}

/* Page 3 */


.third-page #main-paragraph {
    max-width: 60vw;
}

.third-page #second-paragraph {
    max-width: 60vw;
    /* text-align: center; */
}

.third-page .image {
    max-width: 40vw;
    border-radius: 0 0 8px 0;
    background-color: var(--background-sec);
    border-bottom: solid 5px var(--main);
    border-right: solid 5px var(--main);
    overflow: auto;
}

.third-page .table-image {
    width: 400px;
    height: 250px;
    border-radius: 0 0 8px 0;
    border-bottom: solid 5px var(--main);
    border-right: solid 5px var(--main);
}
























































































































































































































.rick {
    position: absolute;
    top: 10px;
    left: 10px;
}

.rick a {
    text-decoration: none;
    color: var(--background-sec);
}