* {
    margin: 0 auto;
    list-style-type: none;
    text-decoration: none;
    color: inherit;
    font-family: "Merriweather Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

h1 {
    font-family: "Yeseva One", serif;
    font-size: 6rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FFF;}

.longTitle {
    font-size: 4rem;
}

h2 {
    font-family: "Yeseva One", serif;
    font-size: 4rem;
}

h3 {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: bold;
    font-size: 2.5rem;
}

p {
    line-height: 1.8rem;
}
.const{
    background-color: rgb(253, 143, 52);
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
}
.const p{
     font-weight: bold;
     line-height: 50px;
}

/* HEADER-------------------------------------------------- */
/* Topnav------------------------ */
.top-nav {
    background-color: #FFEDE9;
}

.top-nav ul {
    display: flex;
    padding: 2px 0;
    font-size: 1.5rem;
    max-width: 1800px;
    justify-content: flex-end;
}

.top-nav ul li {
    margin: 12px;
}

.top-nav ul li:hover {
    color: #0B3943
}


/* Nav new ----------------------------------------------------*/

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #9ACFDA;
    padding: 12px;
}

.logo img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    font-family: "Merriweather Sans", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: #000;
    padding: 8px 24px;
    border-radius: 8px;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 8px;
}

.icon {
    display: none;
    cursor: pointer;
    margin-right: 0;
}

.icon svg {
    fill: #000;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #0B3943;
    position: absolute;
    top: 59px;
    right: 16px;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    width: 50%;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    margin: 0 auto;
    height: 48px;
    padding: 24;
}

.close {
    margin-right: 0
}

/* Responsive */
@media (max-width: 768px) {
    .const{
   
    font-size: 1.2rem;
}


    .navbar {
        height: 36px;
        ;
    }

    .logo {
        position: absolute;
        top: 72px;
    }

    .logo img {
        height: 30px;
    }

    .nav-links {
        display: none;
    }

    .icon {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .icon.close {
        display: none;
    }

    .icon.close.active {
        display: block;
    }

    .icon#burger.hidden {
        display: none;
    }
}

/* Banniere top----------------------------------- */
.banner {
    background: var(--Gradient-DarkBlue, linear-gradient(93deg, #030E11 0.54%, #0B3943 101.72%));
    padding: 48px;
}

.banner-content {
    max-width: 1800px;
    display: flex;
    justify-content: space-between;
}

.banner h1 {
    color: var(--neutrals-0-white, #FFF);
    padding: 0;
    margin: 0;
    word-break: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    hyphens: auto;

}

.banner-content img {
    padding: 0;
    margin: 0;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    height: 300px;
}

button {
    border: none;
    border-radius: 4px;
    background: var(--primary-accent-primary-accent-3, #BE3B1E);
    padding: 8px 24px;
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    font-size: 1rem;
}

button:hover {
    border-radius: 4px;
    background: var(--primary-accent-primary-accent-45, #9F2408);
}


/* MAIN----------------------------------------------------------- */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1800px;
}

.filter-list {
    display: flex;
    padding: 24px 0 8px 0;
    margin: 0;
}

.filter {
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    background: var(--Primary-Blue-Primary-Blue--3, #9ACFDA);
    color: var(--neutrals-100-black, #000);
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    margin: 0 8px;
}

.filter:first-child {
    margin-left: 0;
}

.filter:hover {
    border-radius: 4px;
    background: var(--primary-blue-primary-blue-3, #0B3943);
    color: #FFF;
}

/* Gallery------------------------------------- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 16px;
}

.gallery li {
    height: 500px;
    flex-grow: 1;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*Gallery 2-----*/

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;

}

.filters button {
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    gap: 10px;
    border-radius: 4px;
    background: var(--Primary-Blue-Primary-Blue--3, #9ACFDA);
    color: var(--neutrals-100-black, #000);
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    margin: 0 8px;
}

.filters button.active,
.filters button:hover {
    background: #333;
    color: #fff;
    transition: background 0.6s;
}

.grid {
    column-count: 1;
    column-gap: 1rem;
    padding: 1rem;
}

.grid-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.grid-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.6s;
}

.grid-item:hover img {
    transform: scale(1.08);
}

.grid-item .info {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 1s;
}

.grid-item:hover .info {
    opacity: 1;
}

@media (min-width: 600px) {
    .grid {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .grid {
        column-count: 3;
    }
}

/* PROJECTS--------------------------------------------------------------- */

.project-description {
    display: flex;
    max-width: 1800px;
}

.project-description h2,
h3,
p {
    color: #FFF;
}

.project-description h3 {
    padding-bottom: 24px;
}

.project-text {
    width: 50%;
    padding: 48px 48px 48px 0;
}

.project-text p {
    color: #FFF;
}

.project-cover {
    /* height: 400px; */
    width: 50%;
    padding: 48px 0;
    object-fit: cover;
    max-height: 600px;
    /* border-radius: 8px; */
}


.skills {
    height: 64px;
    margin-top: 24px;
    padding: 12px 0;

}

.skills img {
    height: 100%;
    margin-right: 24px;
}

.csp {
    background-color: #FFF;
    padding: 12px 18px 12px 12px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .project-description {
        flex-wrap: wrap;
        padding: 24px;

    }

    .project-text {
        width: 100%;

    }

    .project-cover {
        height: auto;
        width: 100%;
        padding: 0;
    }

    .skills {
        padding: 0;
        margin-right: 24px;
    }

    .banner {
        padding: 0;
    }

    .banner-home {
        padding: 24px;
    }
}

/* Vidéo ------------------------------------------------- */
video {
    margin-top: 12px;
    border-radius: 12px;
    box-shadow: 5px 5px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Gallerie----------------------------------------------- */


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 5px 5px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;

}

.image-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
    border-radius: 12px;
    box-shadow: 5px 5px 15px -3px rgba(0, 0, 0, 0.1);

}

.image-container:hover img {
    transform: scale(1.08);

}

.image-container:hover .caption {
    opacity: 1;
}

.caption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    padding: 0.5rem;
    transition: opacity 1s;
    opacity: 0;

    /* font-weight: bold; */
}

/* .image-container:hover caption{
   
   } */

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 57, 67, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 0.5rem solid rgb(255, 255, 255);
    border-radius: 8px;
}

.close,
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2em;
    cursor: pointer;
    user-select: none;
}

.close {
    top: 20px;
    right: 30px;
    transform: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}


/* FOOTER-------------------------------------------------------------- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-blue-primary-blue-45, #030E11);
    color: #FFF;
    padding: 32px 0 64px 0;
}

.kihom {
    margin-bottom: 24px;

}

.kihom p {
    font-weight: bolder;
}

footer hr {
    width: 50px;
    margin: 16px 0;
}

.social {
    display: flex;
    gap: 48px;
}

.social li a i {
    margin-right: 10px;
}

.footer-info {
    display: flex;
    gap: 32px;
}

/* Mediaqueries ------------------------*/
@media screen and (max-width: 1280px) {

    .top-nav ul,
    .main-nav-content,
    .banner-content {
        margin: 0 16px;
    }
}

@media screen and (max-width: 1020px) {

    /* .banner-content{
        flex-direction: column-reverse;
        align-items: center;
    } */
    h1 {
        font-size: 2.5rem;
    }

    .banner-content img {
        height: 120px;
        width: fit-content;
    }

    .gallery li {

        flex-grow: 1;
    }

    .gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        ;
    }

    footer {
        flex-direction: row;

    }

    footer hr {
        display: none;
    }

    .social {
        flex-direction: column;
        justify-content: left;
        gap: 16px;
    }

    .footer-info {
        flex-direction: column;
        justify-content: left;
        gap: 16px;

    }
}

/* Formulaire ------------------------------------------ */
.form-container {
    display: flex;
    padding: 48px;
    flex-wrap: wrap;
}

.textContact {
    width: 50%;
}

.padding-right {
    padding-right: 48px;
}

.contactForm {
    width: 50%;
}

.textContact h3,
p {
    color: #000;
}

.textContact h3 {
    margin-bottom: 24px;
}



.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-btn .button {
    display: flex;
    justify-content: flex-end;
    align-items: end;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content.error {
    border-top: 5px solid #e74c3c;
}

.modal-content.success {
    border-top: 5px solid #27ae60;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-icon.error {
    color: #e74c3c;
}

.modal-icon.success {
    color: #27ae60;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
}