
@import url('variables.css');
@import url('base.css');
@import url('layout.css');
@import url('pages-services.css');

/* =========================================
   SECTION PORTFOLIO
   ========================================= */

.portfolio {
    padding-bottom: 62px;
    position: relative;
    background-color: var(--couleur-fond-gris-fonce);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 35px;
}

.section-header h1,
.section-header h2 {
    font-size: 64px;
    font-weight: 400;
    max-width: 849px;
    letter-spacing: -0.08em;
    margin: 0;
}

.section-header h1 span,
.section-header h2 span {
    color: var(--couleur-gris);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card {
    min-width: 100%;
    flex: 0 0 100%;
    background: var(--couleur-fond-gris-clair);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 43px;
}

.project-header {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 25px;
}

.project-header h2 {
    font-size: 42px;
    letter-spacing: -0.02em;
    margin: 0;
}

.project-footer{
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 25px;
}

.services-work {
    font-size: 14px;
    color: var(--couleur-gris-clair);
    text-transform: uppercase;
    letter-spacing: -0.08em;
    font-weight: 300;
    margin: 0;
}

.description {
    font-size: 20px;
    font-weight: 400;
    color: var(--couleur-blanc);
    margin: 0;
    letter-spacing: -0.08em;
}

.project-image {
    flex: 1.2;
    position: relative;
}

.project-image img {
    width: 100%;
    border-radius: 24px;
    display: block;
}

.slider-window {
    overflow: hidden;
    width: 100%;
    padding: 0 2px;
    margin: 0 -2px;
}

.slider-track {
    display: flex;
    gap: 25px;
    padding: 10px 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 62px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--bordure-blanc);
    background: var(--couleur-fond-capsule);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-nav button:active {
    transform: scale(0.9);
}

.project-content h2,
.project-content .description,
.project-image img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.project-card:not(.active) .project-content h2 {
    transform: translateX(30px);
    opacity: 0;
}

.project-card:not(.active) .description {
    transform: translateX(50px);
    opacity: 0;
}

.project-card:not(.active) .project-image img {
    transform: scale(0.9) translateX(20px);
    opacity: 0.5;
    filter: grayscale(1);
}

.project-card.active .project-image img {
    transform: scale(1) translateX(0);
    opacity: 1;
    filter: grayscale(0);
}


/* =========================================
   SECTION SERVICES
   ========================================= */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 43px;
    padding-bottom: 90px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 43px;
    border-radius: 24px;
    min-height: 584px;
    overflow: hidden;
    max-width: 1112px;
    width: 100%;

    position: sticky;
    top: 50px;
    margin: 0 auto auto auto;

    transform-origin: center top;
    transition: transform 0.1s linear, filter 0.1s linear;
}

.service-card:nth-child(1) { z-index: 1; }
.service-card:nth-child(2) { z-index: 2; }
.service-card:nth-child(3) { z-index: 3; }

.service-card.blue { background-color: var(--couleur-fond-bleu); }
.service-card.orange { background-color: var(--couleur-fond-orange); }
.service-card.green { background-color: var(--couleur-fond-vert); }

.service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
    max-width: 634px;
}

.service-body h3 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.08em;
    margin: 0;
}

.tags {
    display: flex;
    gap: 4px;
}

.tag {
    padding: 9px 9px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: -0.08em;
    font-weight: 300;
}

.service-body p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
    letter-spacing: -0.08em;
}

.service-visual {
    flex: 0 0 auto;
    align-self: flex-start;
}

.circle-icon {
    width: 200px;
    height: 200px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-icon img {
    width: 200px;
    height: auto;
}


.btn-service {
    display: inline-block;
    padding: 14px 28px;
    background: #FFFFFF;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: transform 0.3s;
}

.blue .btn-service { color: #1D53D4; }
.orange .btn-service { color: #E45700; }
.green .btn-service { color: #44914F; }

.btn-service:hover {
    transform: scale(1.05);
}

/* =========================================
   SECTION MÉTHODE
   ========================================= */

.method{
    background-color: var(--couleur-fond-gris-fonce);
    padding-bottom: 62px;
}

.method-slider-viewport {
    overflow: hidden;
    max-width: 1112px;
    margin: 0 auto;
    padding: 20px 0;
}

.method-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-nav.mw-1112{
    justify-content: center;
}

.method-card {
    flex: 0 0 1112px;
    width: 1112px;
    background: var(--couleur-fond-gris-clair);
    border: 1px solid var(--bordure-blanc);
    border-radius: 24px;
    padding: 43px;
    position: relative;
    mask-image: radial-gradient(circle at center, black 80%, transparent 100%);
}
.step-number {
    font-size: 48px;
    font-weight: 600;
    color: var(--couleur-gris);
    max-width: 60px;
}

.method-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.method-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.method-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
}

.method-text h3 {
    font-size: 40px;
    color: #FFFFFF;
    letter-spacing: -0.08em;
    font-weight: 400;
    margin: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
}

.method-text p {
    font-size: 16px;
    letter-spacing: -0.08em;
    color: var(--couleur-gris);
    font-weight: 300;
    margin: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
}

.method-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.method-visual img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

.method-card:not(.active) .method-text h3 {
    transform: translateX(30px);
    opacity: 0;
}

.method-card:not(.active) .method-text p {
    transform: translateX(50px);
    opacity: 0;
}

.method-card {
    position: relative;
    background-color: var(--couleur-fond-gris-clair);

    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
}


/* =========================================
   RESPONSIVE INDEX - ARTWEB
   ========================================= */

@media (max-width: 1200px) {
    .method-card, .method-slider-viewport {
        max-width: 95%;
    }
    .method-card {
        flex: 0 0 95vw;
    }
}

@media (max-width: 992px) {
    .section-header h1,
    .section-header h2 {
        font-size: 60px;
    }

    .project-card {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 20px;
    }

    .project-header h2 {
        font-size: 50px;
        letter-spacing: -0.05em;
        font-weight: 400;
    }

    .services-work {
        font-size: 20px;
    }

    .tag {
        font-size: 18px;
    }

    .service-body p {
        font-size: 20px;
    }

    .description {
        font-size: 25px;
    }

    .method-text p {
        font-size: 25px;
    }

    .method-card{
        padding: 35px;
    }
}

@media (max-width: 768px) {
    /* --- SECTION PORTFOLIO & GÉNÉRAL --- */
    .portfolio {
        padding-bottom: 40px;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 50px;
    }

    .section-header {
        align-items: center;
        text-align: center;
    }

    .project-header h2 {
        font-size: 40px;
    }

    .description {
        font-size: 25px;
    }

    .slider-nav {
        justify-content: center;
        margin-top: 30px;
    }

    .slider-window {
        width: 100%;
        overflow: hidden;
    }

    .project-card, .method-card {
        min-width: 100%;
        scroll-snap-align: center;
    }

    /* --- SECTION SERVICES --- */
    .services-list {
        gap: 20px;
    }

    .service-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 30px;
        min-height: auto;
        top: 20px;
    }

    .service-visual {
        align-self: flex-end;
        margin-bottom: 20px;
    }

    .service-body {
        align-items: flex-start;
    }

    .service-body h3 {
        font-size: 35px;
    }

    .service-body p {
        font-size: 18px;
        letter-spacing: -0.02em;
    }

    .circle-icon {
        width: 120px;
        height: 120px;
        margin-top: 0;
    }

    .circle-icon img {
        width: 100px;
    }

    .btn-service {
        text-align: center;
        width: 100%;
    }

    .tags {
        flex-wrap: wrap;
    }

    .tag {
        font-size: 16px;
    }

    /* --- SECTION MÉTHODE --- */
    .method-content {
        flex-direction: column;
        gap: 20px;
    }

    .method-card{
        padding: 30px;
    }

    .method-col {
        min-height: auto;
    }

    .method-text h3 {
        font-size: 30px;
    }

    .method-visual img {
        width: 180px;
    }

    .method-text p {
        font-size: 20px;
        letter-spacing: -0.02em;
    }

    .step-number {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .section-header h1,
    .section-header h2 {
        font-size: 40px;
    }

    .badge {
        font-size: 16px;
    }

    .project-content {
        gap: 10px;
    }

    .project-header h2 {
        font-size: 35px;
    }

    .project-card {
        border-radius: 24px;
        padding: 20px;
    }

    .project-image {
        flex: none;
    }

    .service-card {
        flex-direction: column-reverse;
    }

    .tag {
        font-size: 16px;
        padding: 6px 12px;
    }

    .services-work {
        font-size: 16px;
        font-weight: 400;
    }

    .slider-track, .method-slider-track {
        gap: 15px;
    }

    .step-number {
        font-size: 40px;
    }

    .method-text h3 {
        font-size: 35px;
    }

    .method-card{
        padding: 30px;
    }
}
