body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #2A4747;
    color: #F0F0F0;
    align-items: center;
    justify-content: center;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5em; 
}

/* Accueil */

header {
    background-color: #439775; 
    text-align: center;
    padding: 8vh 5vw 3vh;
}

header h1,
header p,
.proust,
.presentation p {
    font-family: 'Montserrat', sans-serif;
}

h2, h3, .category-title, .project-title {
    font-family: 'Oswald', sans-serif;
}

.logo {
    width: 8vw;
    max-width: 200px;
    height: auto;
    margin-bottom: 2vh;
    margin-top: -5vh;
}

/* Menu */

.menu {
    position: sticky;
    top: 0;
    background-color: #439775;
    padding: 0.5em 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.menu-corner {
    position: absolute;
    top: 0;
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-corner.left {
    left: 0;
}

.menu-corner.right {
    right: 0;
}

.motif {
    position: absolute;
    top: 0;
    width: 80px; 
    opacity: 0;
    transform: translateY(-20%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

body.sticky-active .motif {
    opacity: 1;
    transform: translateY(0);
}

.menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
}

.menu a {
    text-decoration: none;
    color: #F0F0F0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5em 1em;
    border-radius: 0.3em;
    transition: background-color 0.3s;
    cursor: pointer;
}

.menu a:hover {
    background-color: #2A4747;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 1vh;
    margin-top: 5vh;
}

header p {
    font-size: 1.1rem;
    color: #2A4747;
}

/* Intro Section */

.intro {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3vw;
    padding: 8vh 5vw;
}

.blason {
    width: 18vw;
    max-width: 50em;
    height: auto;
}

.proust {
    background-color: #F0F0F0;
    color: #2A4747;
    padding: 2em;
    max-width: 40vw;
    min-width: 280px;
}

.proust h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.proust h3 {
    color: #61D095;
    margin-top: 0.5em;
    font-weight: normal;
}

.proust ul {
    padding-left: 1em;
}

.proust li {
    margin-bottom: 0.8em;
    font-size: 1em;
}

/* Présentation Section */

.presentation-container {
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 0 5vw 5vh;
}

.presentation {
    background-color: #F0F0F0;
    color: #2A4747;
    padding: 2em;
    width: fit-content;
    max-width: 54.5vw;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.presentation h2 {
    font-size: 2rem;
    margin-top: 0;
}

.presentation p {
    max-width: 80%;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Logiciels utilisés */

.presentation-softwares {
    margin-top: 4vh;
}

.presentation-softwares h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1em;
    color: #2A4747;
}

.softwares-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2em;
    justify-items: center;
    align-items: center;
}

.software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.software-item img {
    width: 60px; 
    height: 60px; 
    object-fit: cover;
    margin-bottom: 0.5em;
}

.software-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

@media (max-width: 800px) {
    .softwares-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .softwares-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
}

/* Section Titles */

#travaux-title {
    font-family: 'Montserrat', sans-serif;
    color: #F0F0F0;
    background-color: #439775;
    font-size: 3rem; 
    text-align: center;
    padding: 0.5em 1em; 
    margin: 15vh auto 10vh auto;
    width: fit-content;
}

.sections-title {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    background-color: #F0F0F0;
    font-size: 2.2rem; 
    text-align: center;
    padding: 0.5em 1em; 
    margin: 15vh auto 10vh auto;
    margin-bottom: 20vh;
    width: fit-content;
}

/* Styles répétés */

.projets-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    gap: 5em;
    padding: 5vh 5vw;
}

.projets-container.reverse {
    flex-direction: row-reverse;
}

.projets-text {
    flex: 1;
    margin-left: 5em;
    margin-right: 5em;
}

.projets-title {
    color: #61D095;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 1em;
    margin-top: -0.3em;
}

.projets-description {
    color: #F0F0F0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify; 
}

/* Infographies images */

.infographie-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.infographie-image img {
    max-width: 100%;
    height: auto;
    max-height: 90vh; 
    object-fit: contain;
}

/* Photographies images */

.photographie-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;        
    flex-wrap: nowrap; 
}

.photographie-images img {
    width: calc(50% - 2em);  
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.3em;
}

/* Photographies grid 2x2 */

.photographie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    flex: 1;
}

/* Responsive Design */


@media (max-width: 900px) {
    .projets-container {
        flex-direction: column;
        gap: 3em;
        padding: 3vh 3vw;
    }

    .projets-container.reverse {
        flex-direction: column;
    }

    .projets-text {
        margin: 0 0 2em 0;
        width: 100%;
    }

    .infographie-image,
    .photographie-images,
    .photographie-grid {
        flex-wrap: wrap;
        gap: 1.5em;
        justify-content: center;
    }

    .infographie-image img,
    .photographie-images img {
        width: 100%;
        max-width: 400px; 
        margin: 0 auto;
    }

    .photographie-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

@media (max-width: 500px) {
    header h1 {
        font-size: 1.5rem;
    }

    .menu a {
        font-size: 0.9rem;
        padding: 0.4em 0.8em;
    }

    .projets-title {
        font-size: 1.5rem;
    }

    .projets-description {
        font-size: 1rem;
    }
}

.photographie-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 2em;                      
}

.photographie-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Container photo unique */

.photographie-inverse-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3em;
    max-width: 90vw;
    margin: 0 auto 5vh auto;
    margin-top: 5vh;
}

.photographie-left, .photographie-right-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}

/* 2 photos portrait côte à côte */
.photographie-left img {
    width: calc(50% - 0.75em);
    aspect-ratio: 1356 / 1885;
    object-fit: cover;
}

/* grille 2x2 */
.photographie-right-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5em;
}

.photographie-right-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Texte en dessous sur toute la largeur */
.photographie-text-fullwidth {
    max-width: 90vw;
    margin: 0 auto 5vh auto;
}

.photographie-text-fullwidth .projets-title {
    color: #61D095;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 1em;
}

.photographie-text-fullwidth .projets-description {
    color: #F0F0F0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Productions audiovisuelle */

.projets-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projets-video iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9; 
    border-radius: 0.3em;
}

/* Container site web unique */

.website-inverse-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3em;
    max-width: 90vw;
    margin: 0 auto 5vh auto;
    margin-top: 6vh;
}

.website-left-single {
    flex: 1;
    display: flex;
    justify-content: center;
}

.website-left-single img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.3em;
}

.website-right-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5em;
    flex: 1;
}

.website-right-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.3em;
}

.website-text-fullwidth {
    max-width: 90vw;
    margin: 0 auto 5vh auto;
}

.website-text-fullwidth .projets-title {
    color: #61D095;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 1em;
}

.website-text-fullwidth .projets-description {
    color: #F0F0F0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Autres projets */ 

.affiches-portraits {
    flex: 1;
    display: flex;
    gap: 1.5em;
}

.affiches-portraits img {
    width: calc(50% - 0.75em);
    height: auto;
    object-fit: cover;
    border: 2px solid #F0F0F0;
}

.carousel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
}

.carousel-image {
    width: 100%;
    display: none;
    object-fit: cover;
}

.carousel-image.active {
    display: block;
}

/* Boutons */

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: 100%;
    font-size: 2rem;
    padding: 0.2em 0.4em;
    cursor: pointer;
    z-index: 10;
}

button.prev { left: 5px; }
button.next { right: 5px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.carousel-indicators .dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #439775;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.carousel-indicators .dot.active {
    background-color: #61D095;
}

/* Contact*/ 

.contact {
    background-color: #F0F0F0;
    color: #2A4747;
    padding: 8vh 5vw;
    text-align: center;
    border-top: 5px solid #439775;
    border-bottom: 5px solid #439775;
}

.contact-container {
    max-width: 1200px;   
    margin: 0 auto;      
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5em;
}

.contact-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2em;
}

.contact-infos {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}

.contact-infos a {
    color: #439775;
    text-decoration: none;
    font-weight: bold;
}

.contact-infos a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contact-infos p {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }
}

/* Footer */

.footer {
    background-color: #2A4747;
    color: #F0F0F0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2em;
    margin-bottom: 1em;
}

.footer-links a {
    color: #F0F0F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #61D095;
}

.footer-mention {
    font-size: 0.9rem;
    opacity: 0.7;
}

