:root {
    --bg: #FBFAF7;
    --bg-alt: #F5F3EE;
    --text: #1C1C1A;
    --text-secondary: #6B6A64;
    --text-muted: #8A887F;
    --border: #E3E1DA;
    --orange: #F2611D;
    --orange-tint: rgba(242, 97, 29, .08);
    --green: #3B8A5A;
    --radius: 9px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--orange);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: width .5s ease, opacity .2s ease;
}

.page-loader.is-loading {
    opacity: 1;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
}

.brand__orange {
    color: var(--orange);
    font-weight: 500;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
}

.brand {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.phone-pill:hover {
    color: var(--bg) !important;
}

.main-nav a {
    font-size: .92rem;
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav a.is-active:hover {
    color: var(--orange);
}

.availability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--text-secondary);
}

.availability__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--orange);
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
}

.phone-pill:hover {
    opacity: .92;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.share-widget {
    position: relative;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 14px;
    font-size: .85rem;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}

.share-btn:hover {
    border-color: var(--text-muted);
}

.share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    z-index: 30;
}

.share-menu.is-open {
    display: block;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.share-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    font-size: .88rem;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--border);
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.share-menu__item:last-child {
    border-bottom: none;
}

.share-menu__item:hover {
    background: var(--bg-alt);
}

.share-menu__item.is-copied {
    background: rgba(59, 138, 90, .08);
    color: var(--green);
}

.share-backdrop {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--orange);
    color: #fff;
}

.btn--primary:hover {
    opacity: .92;
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--text-muted);
}

.btn--on-orange {
    background: #fff;
    color: var(--orange);
}

/* Hero */
.hero {
    text-align: center;
    padding: 72px 0 48px;
}

.hero__eyebrow {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--orange);
}

.hero h1 {
    font-size: 2.15rem;
    max-width: 640px;
    margin: 16px auto;
}

.hero h1 mark {
    background: none;
    color: var(--orange);
}

.hero p {
    max-width: 480px;
    margin: 0 auto;
    font-size: 1.02rem;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.stack-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.stack-badge {
    font-size: .78rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 5px 14px;
    border-radius: 999px;
}

/* Stats banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-banner__item {
    text-align: center;
    padding: 28px 8px;
    border-right: 1px solid var(--border);
}

.stats-banner__item:last-child {
    border-right: none;
}

.stats-banner__number {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--orange);
}

.stats-banner__label {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}

.section__header h2 {
    font-size: 1.4rem;
}

.section__header p {
    margin-top: 8px;
}

.section__title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.section__title-row h2 {
    font-size: 1.4rem;
    margin: 0;
}

.section__title-row a {
    color: var(--orange);
    font-size: .9rem;
    font-weight: 500;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    background: var(--bg);
}

.service-card i {
    font-size: 20px;
    color: var(--orange);
}

.service-card h3 {
    font-size: .98rem;
    margin: 14px 0 6px;
}

.service-card p {
    font-size: .88rem;
    margin: 0;
}

/* Steps */
.steps-line {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.steps-line__connector {
    position: absolute;
    top: 15px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--border);
}

.steps-line__item {
    flex: 1;
    text-align: center;
    position: relative;
}

.steps-line__circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--orange);
    color: var(--orange);
    font-size: .82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.steps-line__circle--active {
    background: var(--orange);
    color: #fff;
}

.step__label {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    margin-top: 14px;
}

.step__desc {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Project grid */
.projet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.projet-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.projet-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projet-card__image {
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .8rem;
    overflow: hidden;
}

.projet-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projet-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--orange-tint);
    color: var(--orange);
    align-self: flex-start;
}

.projet-card h3 {
    margin: 12px 0 6px;
    font-size: 1.05rem;
}

.projet-card__context {
    font-size: .88rem;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.projet-card__stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.projet-card__stack .stack-badge {
    font-size: .72rem;
    padding: 3px 10px;
}

.projet-card__more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: none;
    background: none;
    color: var(--orange);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.projet-card__more:hover {
    text-decoration: underline;
}

.projet-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.projet-modal.is-open {
    display: flex;
}

.projet-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 26, .45);
}

.projet-modal__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projet-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.projet-modal__tags {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--orange);
}

.projet-modal__header h3 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.projet-modal__close {
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.projet-modal__close:hover {
    color: var(--text);
}

.projet-modal__body {
    padding: 20px 24px;
    overflow-y: auto;
    font-size: .9rem;
    color: var(--text);
    line-height: 1.6;
}

.projet-modal__body h1 {
    font-size: .95rem;
    margin: 16px 0 6px;
}

.projet-modal__body h1:first-child {
    margin-top: 0;
}

.projet-card__result {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    color: var(--green);
    margin-top: auto;
}

.projet-card__result i {
    font-size: .9rem;
}

/* Filter chips */
.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.chip {
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg);
}

.chip.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Testimonial */
.testimonial {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text);
    margin: 0;
}

.testimonial__author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.testimonial__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 500;
    flex-shrink: 0;
}

.testimonial__author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.testimonial__name {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
}

.testimonial__company {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.testimonial__note {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

/* Testimonial slider */
.testimonial-slider {
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider__track {
    display: flex;
    transition: transform .4s ease;
}

.testimonial-slider__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.testimonial-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.testimonial-slider__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.testimonial-slider__arrow i {
    color: var(--orange);
}

.testimonial-slider__arrow:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.testimonial-slider__dots {
    display: flex;
    gap: 8px;
}

.testimonial-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
}

.testimonial-slider__dot.is-active {
    background: var(--orange);
}

/* CTA banner */
.cta-banner {
    background: var(--orange);
    text-align: center;
    padding: 48px 0;
}

.cta-banner h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 20px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form label {
    font-size: .85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A887F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--orange);
}

.contact-form .label-error {
    color: #A32D2D;
}

.contact-form .input-error {
    border-color: #E24B4A;
    background: rgba(226, 75, 74, .06);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.contact-info {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 28px;
}

.contact-info__row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    margin-bottom: 14px;
}

.contact-info__row i {
    color: var(--orange);
    font-size: 16px;
}

.contact-info__socials {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.contact-info__socials i {
    font-size: 18px;
    color: var(--orange);
}

.flash-success {
    background: rgba(59, 138, 90, .1);
    color: var(--green);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .9rem;
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background: var(--text);
    color: var(--text-muted);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__brand {
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
}

.site-footer__city {
    font-size: .8rem;
    margin-top: 4px;
}

.site-footer__socials {
    display: flex;
    gap: 14px;
}

.site-footer__socials i {
    font-size: 17px;
    color: var(--orange);
}

@media (max-width: 780px) {

    .service-grid,
    .projet-grid--2col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-banner__item {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .stats-banner__item:nth-child(2n) {
        border-right: none;
    }

    .stats-banner__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
        border: none;
    }

    .main-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 8px 28px 20px;
        z-index: 20;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
    }

    .main-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .phone-pill {
        display: flex;
        justify-content: center;
    }

    .availability {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .phone-pill {
        margin-top: 14px;
    }

    .share-btn {
        height: 36px;
        justify-content: center;
        border-radius: 8px;
        border: none;
        gap: 4px;
    }

    .share-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(28, 28, 26, .45);
        z-index: 40;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .share-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .share-menu {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        width: min(85vw, 300px);
        z-index: 50;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(.92);
        transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
    }

    .share-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

    .site-header {
        position: relative;
    }

    .steps-line {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .steps-line__connector {
        display: none;
    }

    .steps-line__item {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .steps-line__circle {
        margin: 0;
        flex-shrink: 0;
    }

    .steps-line__text {
        display: flex;
        flex-direction: column;
    }

    .step__label {
        margin-top: 0;
    }

    .step__desc {
        margin-top: 4px;
    }

    .testimonial-slider__slide .testimonial {
        padding: 0 8px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 48px 0 36px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .section {
        padding: 44px 0;
    }

    .projet-grid {
        grid-template-columns: 1fr;
    }

    .section__title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-info {
        padding: 20px;
    }

    .site-footer__inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding-block: 12px;
    }

    .cta-banner h2 {
        font-size: 1.1rem;
        padding: 0 16px;
    }
}