body {
    margin: 0;
    font-family: system-ui, Arial;
    background: #f7f9fa;
}

/* header */


.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.header {
    background: #ffffffd1;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #eee;
}

header a>img {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 40px;
}

.section-header h2 {
    font-size: 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    gap: 0.6rem;
    color: #2b2b2b;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.text-primary {
    color: #0066ff;
}

.nav a {
    margin-left: 2rem;
    font-weight: 400;
    font-size: small;
    transition: color 0.3s;
    color: #2f3741;
    text-decoration: none;
}

.nav a:hover {
    color: #8a2be3;
}

/*  */

.spacer {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


.sct-scroll {
    position: relative;
}

.scroll-track {
    position: relative;
}

.sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame {
    width: min(1100px, 92vw);
    height: min(400px, 75vh);
    background: #fff;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: translateZ(0);
}

/* .divider {
      position: absolute;
      top: 0; bottom: 0;
      left: 50%;
      width: 3px;
      transform: translateX(-1.5px);
      background: rgba(221, 221, 221, 1);
      z-index: 2;
    } */

.item {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    z-index: 1;
}

.col {
    position: relative;
    padding: clamp(18px, 3vw, 46px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.txtbox {
    margin: auto;
    max-width: 420px;
    padding: 22px;
    border-radius: 18px;
}

.txtbox h2 {
    margin: 0 0 50px 0;
    font-size: 40px;
    text-align: center;
}

.txtbox p {
    margin: 0;
    line-height: 1.9;
    font-size: 16px;
    opacity: .85;
    text-align: center;
}

.imgbox {
    margin: auto;
    width: min(420px, 70%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    opacity: .9;
}

.sct-scroll img {
    height: 250px;
}

@media (max-width: 820px) {
    .item {
        grid-template-columns: 1fr;
    }

    .divider {
        display: none;
    }

    .frame {
        height: 80vh;
    }

    .imgbox {
        width: min(360px, 85%);
    }

    .txtbox {
        max-width: 520px;
    }

    .ctn1Index a {
        width: 130px !important;
    }
}

/*index*/

/* section 1 */


#sct1Index {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 0px;
    overflow: hidden;
    position: relative;
}

#sct1Index h1 {
    gap: 50px;
    margin: 0;
}

.ctn1IndexBtn {
    margin: 50px 0;
}

.ctn1Index {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.ctn1Index h2 {
    font-weight: 300;
    font-family: "Montserrat", sans-serif;
}

.ctn1Index button {
    border-radius: 25px;
    width: 180px;
    padding: 10px;
    border-style: none;
    border: 0px;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
}

.ctn1Index a {
    border-radius: 25px;
    width: 180px;
    padding: 10px;
    border-style: none;
    border: 0px;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

}

.ctn1Index button img {
    width: 30px;
    margin-left: 10px;
}

.ctn1Index a img {
    width: 30px;
    margin-left: 10px;
}

.ctn1Index h1>span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #1e90ff, #00c9ff);
    z-index: -100;
    animation: anim1 1s cubic-bezier(.8, .05, .2, 1) forwards, anim2 1s 1s cubic-bezier(.8, .05, .2, 1) forwards;
}

@keyframes anim1 {
    to {
        width: 100%;
    }
}

@keyframes anim2 {
    to {
        height: 0%;
        transform: translateY(145px);
    }
}

.tache {
    position: absolute;
    border-radius: 50%;
    /* bords complètement arrondis */
    background: radial-gradient(circle,
            rgba(90, 180, 255, 0.11),
            rgba(60, 150, 255, 0.15),
            rgba(50, 129, 255, 0.11));
    filter: blur(80px);
    opacity: 0.6;
    animation: float 30s ease-in-out infinite;
}

/* Mouvement doux et aléatoire */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-70px, 40px) scale(0.9);
    }

    75% {
        transform: translate(30px, -20px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.ctn1Index a:nth-child(1) {
    background-color: #005fff;
    color: white;
}

.ctn1Index a:nth-child(2) {
    background-color: white;
    color: black;
}


.ctn1Index h1 {

    display: flex;
    font-size: 6rem;
    color: #002333;
    font-weight: 600;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
}

.ctn1Index h1>span {

    position: relative;
    transform: translateY(50px);
}

.ctn1Index h1>span>span {
    color: #451374;
    position: relative;
    z-index: 100;
    transform: translateY(50px);
    background-image: linear-gradient(45deg, #005fff, #00c9ff, #005fff);
    background-size: 200% auto;
    color: #fff0;
    -webkit-background-clip: text;
    background-clip: text;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0;
    animation: animmationShadowTxt1 3s ease infinite;


}

@keyframes animmationShadowTxt1 {
    0% {
        background-position: 0% 50%;

    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ctn1Index h2 {
    text-align: center;
    width: 60%;
    font-size: 1.3rem;

}

.ctn1Index h2 span {
    font-weight: 600;
    color: #002333;
}

.ctn2Index {
    display: flex;
    justify-content: center;
    gap: 75px;
    width: 800px;
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0 auto;
}

.ctnIndexPortfolio img {
    width: 60px;
}

.projets {
    padding: 4rem 0;
}

.projets-grid-asym {
    display: flex;
    gap: 1.5rem;
    height: 520px;
    /* Hauteur totale de la grille */
}

.project-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 1rem;
}

.overlay>div {
    display: flex;
    align-items: center;
}

#imgIconWeb {
    width: 80px;
    height: 80px;
}


.purple {
    background-color: rgba(123, 38, 202, 0.6);
}

.green {
    background-color: rgba(0, 200, 150, 0.6);
}

.blue {
    background-color: rgba(0, 0, 0, 0.81);
}

.project-card .overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-card .overlay p {
    font-size: 1rem;
    max-width: 90%;
}

.project-card:hover>img {
    filter: blur(3px);
    transform: scale(1.05);
}

.project-card:hover .overlay {
    opacity: 1;
}

.col-left,
.col-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.col-left {
    flex: 1;

}

.col-right {
    flex: 2;
}

.small-img,
.large-img {
    flex: 1;
}

.small-img img,
.large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-img:hover img,
.large-img:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.small-img h3,
.large-img h3 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .projets-grid-asym {
        flex-direction: column-reverse;

        height: auto;
    }

    .small-img,
    .large-img {
        height: auto;
    }

    .item {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column-reverse;
        /* Inverse haut/bas */
        flex-wrap: wrap-reverse;
        /* Pour 2 colonnes, inverse aussi horizontal si besoin */
        pointer-events: none;
        will-change: transform;
        backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
        z-index: 1;
        height: 100%;
        /* Important pour column-reverse */
        flex-direction: column-reverse;
        justify-content: center;
    }

    .sct-scroll img {
        height: 160px;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.contact {
    padding: 5rem 0;
}

.contact .grid {
    margin-top: 3rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.form button {
    border-radius: 25px;
    width: 210px;
    padding: 5px;
    border-style: none;
    border: 0px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    background-color: #005fff;
    color: white;
    margin: 0 auto;

}

.form-flex {
    display: flex;
    gap: 2rem;
    /* Espace entre les colonnes */
    flex-wrap: wrap;
    /* Permet le retour à la ligne sur petits écrans */
}

.divider {
    flex: 1;
    /* Chaque divider prend la moitié de l'espace disponible */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Espace entre les champs */
}

.form label {
    font-weight: 600;
    text-align: left;
}

.form input,
.form textarea,
.form select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
}

.form textarea {
    height: 10rem;
}

.info .card {
    margin-bottom: 1.5rem;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    padding: 2rem 0;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 2rem;
}

.info a {
    text-decoration: none;
    color: black;
}








/* Footer */
#mainFooter {
    width: 100%;
    height: 60vh;
    position: relative;
    background-color: white;
}

#footerBackground {
    position: absolute;
    width: 100%;
    height: 100%
}

#footerContent {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
}

#mainFooter p,
#mainFooter h3 {
    margin: 0;
    font-family: 'montserrat', sans-serif;
    font-weight: 500;
    color: black;
}

#footerLinks h3 {
    font-size: 1.5rem;
    color: black;
    margin-bottom: 25px;
}



.footerLink {
    font-size: 1.1rem;
    color: rgb(65, 65, 65) !important;
    margin: 5px 0 !important;
    text-decoration: none;

}

#footerContent {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: end;
    gap: 10%;
}

#footerUpperSection {
    display: grid;
    grid-template-columns: 30% 70%;
    width: 90%;
    margin: 0 auto;
}

#footerLogo {
    display: flex;
    align-items: center;
    gap: 10%;
    justify-content: center;
}

#footerLinks {
    display: flex;
    width: 100%;
    justify-content: space-around;

}

#footerLowerSection {
    display: grid;
    grid-template-columns: 50% 50%;
    margin-bottom: 35px;
}

#footerSocialSection {
    display: flex;
    gap: 5%;
    align-items: center;
}

#footerCopyright {
    margin-left: 35px !important;
}

#footerLegalText {
    text-align: end;
    margin-right: 35px !important;
}

#footerLogoText {
    font-size: 3rem;
}


#footerLogoText {
    background-image: linear-gradient(45deg, #000000, #00293c, #000000);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0;
    animation: gradientsct2 3s ease infinite;
}

@keyframes gradientsct2 {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#indexBlockRight1 {
    display: flex;
    justify-content: center;
    gap: 5%;
}

#indexBlockRight1 div {
    cursor: pointer;

}

#footerUpperSectionLigne {
    width: 100%;
    height: 5px;
}

#footerUpperSectionLigne>span {
    width: 100%;
    height: 5px;
    display: flex;
    justify-content: center;

}

#footerUpperSectionLigne>span>span {
    width: 80%;
    height: 3px;
    background-color: #000000;
    border-radius: 10px;

}

@media screen and (max-width: 1200px) {

    #footerUpperSection {
        grid-template-columns: 50% 50%;
    }

    #footerLinks {
        justify-content: center;
        gap: 25px;
    }

}


@media screen and (max-width: 900px) {
    #mainFooter {
        height: var(--section-height);
    }

    #footerContent {
        gap: 10%;
    }

    #footerUpperSection {
        grid-template-rows: 50% 50%;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    header .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        align-items: center;
    }

    header>a>img {
        display: none;
    }


}


@media screen and (max-width: 900px) {

    #footerLogo {
        flex-direction: column;
    }

    #footerLinks {
        flex-direction: column;
    }

    .footerLinkColumn p,
    .footerLinkColumn h3 {
        text-align: center;
    }

    #footerUpperSectionLigne {
        margin-top: 50px;
    }

    .footerLinkColumn {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

@media screen and (max-width: 650px) {

    /* index */
    .ctn1Index>h2 {
        width: 70%;
    }

    .ctnIndexPortfolio {
        gap: 30px !important;
        width: auto !important;
    }

    /* section 2*/
    .frame {
        transform: translateZ(0) translateY(40px) !important;
    }

    .frame {
        height: 65vh;
    }

    #mainFooter {
        height: auto;
    }

    #footerUpperSectionLigne {
        margin-top: 150px;
        margin-bottom: 50px;
    }

    #footerLowerSection {
        grid-template-rows: 50% 50%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #footerSocialSection {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    #footerContent {
        gap: 5%;


    }

    #footerContent {
        position: relative;
    }

    .footerColumnTitle {
        font-weight: 600;
        font-size: 1.8rem;
    }

    .footerLink {
        font-size: 1.3rem;
    }

    #footerCopyright,
    #footerLegalText {
        margin: 0 !important;
        text-align: center;
    }

    .ctn1Index h1 {
        font-size: 3.5rem;
    }

    .ctn1Index button {

        width: 140px;
    }

    #sct1Index {

        gap: 30px !important;
    }

    .item h2 {
        margin: 0 0 20px 0;
    }

    .col-img {
        padding-bottom: 0;
    }

    .col-text {
        padding-top: 0;
    }

    /* projet */
    .overlay {
        padding: 0 !important;
    }

    .overlay>div img {
        width: 70px;
        height: 70px;
    }

    #imgIconWeb {
        width: 50px;
        height: 50px;
    }

    /* info */
    .info {
        flex-direction: column;
    }

    .info>div {
        width: 100% !important;
    }

}

@media (max-width: 768px) {

    /* sct1 */
    #sct1Index {
        justify-content: center;
        gap: 50px;
    }

    .ctn1Index {
        gap: 15px;
    }
}