/* =========================================================
   START WEB — PORTFOLIO
   ========================================================= */

.startweb-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 32px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.startweb-project-card {
    min-width: 0;
}

.startweb-project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   BROWSER MOCKUP
   ========================================================= */

.startweb-browser {
    position: relative;
    overflow: hidden;

    background: #f4f4f5;

    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.08),
        0 4px 14px rgba(0, 0, 0, 0.04);

    transform: translateY(0);

    transition:
        transform 0.5s cubic-bezier(.2,.7,.2,1),
        box-shadow 0.5s cubic-bezier(.2,.7,.2,1);
}

.startweb-project-link:hover .startweb-browser {
    transform: translateY(-8px);

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.13),
        0 8px 20px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   BROWSER BAR
   ========================================================= */

.startweb-browser-bar {
    height: 42px;

    display: flex;
    align-items: center;

    position: relative;

    padding: 0 16px;

    background: #f8f8f8;

    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}


/* macOS dots */

.startweb-browser-dots {
    display: flex;
    gap: 6px;
}

.startweb-browser-dots span {
    width: 9px;
    height: 9px;

    display: block;

    border-radius: 50%;

    background: #d4d4d4;
}


/* fake URL */

.startweb-browser-address {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    width: 42%;

    padding: 5px 12px;

    text-align: center;

    font-family: system-ui, sans-serif;
    font-size: 10px;
    line-height: 1;

    color: #888;

    background: #eeeeee;

    border-radius: 6px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   SCREEN
   ========================================================= */

.startweb-browser-screen {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #ffffff;
}

.startweb-browser-screen img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: top center;

    transition:
        transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.startweb-project-link:hover
.startweb-browser-screen img {
    transform: scale(1.025);
}


/* =========================================================
   PROJECT INFO
   ========================================================= */

.startweb-project-info {
    position: relative;

    padding: 22px 4px 0;
}

.startweb-project-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: #777;
}

.startweb-project-meta span + span::before {
    content: "•";

    margin-right: 12px;

    color: #bbb;
}

.startweb-project-info h3 {
    margin: 0;

    padding-right: 45px;

    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -0.035em;

    color: #171717;
}

.startweb-project-arrow {
    position: absolute;

    right: 4px;
    bottom: 0;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0,0,0,.1);
    border-radius: 50%;

    font-size: 18px;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.startweb-project-link:hover
.startweb-project-arrow {
    transform: translateX(4px);
}


/* =========================================================
   EMPTY
   ========================================================= */

.startweb-portfolio-empty {
    padding: 80px 0;

    text-align: center;

    color: #777;
}


/* =========================================================
   RESPONSIVE (grid)
   ========================================================= */

@media (max-width: 900px) {

    .startweb-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .startweb-project-info h3 {
        font-size: 28px;
    }
}


@media (max-width: 600px) {

    .startweb-browser {
        border-radius: 13px;
    }

    .startweb-browser-bar {
        height: 34px;
        padding: 0 11px;
    }

    .startweb-browser-dots span {
        width: 7px;
        height: 7px;
    }

    .startweb-browser-address {
        font-size: 8px;
        padding: 4px 8px;
    }

    .startweb-project-info {
        padding-top: 17px;
    }

    .startweb-project-info h3 {
        font-size: 25px;
    }
}


/* =========================================================
   CONTAINER (single + archive)
   ========================================================= */

.startweb-project-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: 32px;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   HERO (single + archive)
   ========================================================= */

.startweb-project-hero {
    margin-top: -90px;
    padding-top: 90px;
    padding-bottom: 0;
    background-image: url(https://start-web.ch/wp-content/uploads/2026/08/Hero-Container.png);
    background-position: center center;
    background-repeat: repeat;
    background-size: 35% auto;
}

.startweb-single-category {
    margin-bottom: 25px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: #777;
}

.startweb-project-hero h1 {
    max-width: 1000px;

    margin: 0;

    font-size: clamp(56px, 8vw, 120px);
    line-height: .92;

    letter-spacing: -.065em;
    font-weight: 750;

    color: #111;
}

.startweb-project-intro {
    max-width: 720px;

    margin: 42px 0 0;

    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;

    letter-spacing: -.025em;

    color: #555;
}


/* =========================================================
   ARCHIVE GRID SECTION (nouveau)
   ========================================================= */

.startweb-archive-grid-section {
    padding: 60px 0 130px;
}

.startweb-archive-pagination {
    margin-top: 60px;

    display: flex;
    justify-content: center;
    gap: 16px;
}

.startweb-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid rgba(0,0,0,.12);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    color: #111;

    text-decoration: none;

    transition: background .3s ease, color .3s ease;
}

.startweb-archive-pagination .page-numbers.current {
    background: #111;
    color: #fff;
}

.startweb-archive-pagination .page-numbers:hover:not(.current) {
    background: #f4f4f5;
}

@media (max-width: 800px) {

    .startweb-archive-grid-section {
        padding: 40px 0 80px;
    }
}


/* =========================================================
   PROJECT DETAILS
   ========================================================= */

.startweb-project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;

    margin-top: 65px;

    padding-top: 25px;

    border-top: 1px solid rgba(0,0,0,.12);
}

.startweb-project-details div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.startweb-project-details span {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: #888;
}

.startweb-project-details strong {
    font-size: 15px;
    font-weight: 600;

    color: #111;
}


/* =========================================================
   BUTTON
   ========================================================= */

.startweb-project-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    margin-top: 45px;

    padding: 15px 21px;

    color: #fff;
    background: var(--e-global-color-5b25fb9);

    border-radius: 999px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.startweb-project-button:hover {
    transform: translateY(-2px);
    opacity: .85;
}

.startweb-project-button span {
    font-size: 17px;
}


/* =========================================================
   MAIN IMAGE
   ========================================================= */

.startweb-project-main-image {
    padding-bottom: 50px;
}

.startweb-browser-large {
    border-radius: 22px;

    box-shadow:
        0 40px 100px rgba(0,0,0,.13),
        0 8px 25px rgba(0,0,0,.06);
}

.startweb-browser-large
.startweb-browser-bar {
    height: 48px;
}

.startweb-browser-large
.startweb-browser-screen {
    aspect-ratio: 16 / 9;
}


/* =========================================================
   CONTENT
   ========================================================= */

.startweb-project-content {
    padding: 50px 0;
}

.startweb-project-content-grid {
    display: grid;

    grid-template-columns: 260px minmax(0, 720px);

    justify-content: center;

    gap: 80px;
}

.startweb-project-label {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: .1em;
    text-transform: uppercase;

    color: #777;
}

.startweb-project-label span {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;

    color: #aaa;
}

.startweb-project-editorial {
    font-size: 19px;
    line-height: 1.7;

    color: #333;
}

.startweb-project-editorial h2 {
    margin-top: 70px;
    margin-bottom: 20px;

    font-size: 38px;
    line-height: 1.05;

    letter-spacing: -.04em;

    color: #111;
}

.startweb-project-editorial p {
    margin-bottom: 25px;
}

.startweb-project-editorial img {
    width: 100%;
    height: auto;

    margin: 50px 0;

    border-radius: 16px;
}


/* =========================================================
   CTA — sélecteurs renforcés pour écraser les styles
   globaux du thème Hello Elementor (titres/liens)
   ========================================================= */

.startweb-project-cta {
    padding: 140px 0;

    background: #111 !important;
    color: #fff !important;
}

.startweb-project-cta * {
    color: #fff !important;
}

.startweb-project-cta span:first-child {
    display: block;

    margin-bottom: 25px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;
}

.startweb-project-cta h2 {
    margin: 0;

    font-size: clamp(42px, 6vw, 82px);
    line-height: .95;

    letter-spacing: -.06em;
}

.startweb-project-cta a {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    margin-top: 45px;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition: opacity .3s ease;
    
    background: var(--e-global-color-5046f92);
    padding: 5px 20px;
    border-radius: 10px;
}

.startweb-project-cta a:hover {
    opacity: .8;
}

.startweb-project-cta a span {
    font-size: 22px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .startweb-project-hero {
        padding: 100px 0 70px;
    }

    .startweb-project-container {
        width: min(100% - 32px, 1200px);
        padding-left: 0;
        padding-right: 0;
    }

    .startweb-project-details {
        gap: 30px;
    }

    .startweb-project-main-image {
        padding-bottom: 80px;
    }

    .startweb-project-content {
        padding: 80px 0;
    }

    .startweb-project-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .startweb-project-cta {
        padding: 90px 0;
    }
}