:root {
    --bleu: #22333B;
    --bleu-clair: #5C6672;
    --creme: #F4F1EA;
    --accent: #BC6C25;
    --or: #C9A227;
    --nuit: #0D1B2A;
    --nuit-card: #152435;
    --nuit-border: rgba(255,255,255,0.1);
    --vert-code: #9FE1CB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-snap-type: y proximity;
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--bleu);
    background: var(--creme);
    line-height: 1.65;
}

header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

nav a:hover { color: var(--or); }

.lang-switch {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    font-size: 0.75rem !important;
}

.hero, .page-hero {
    position: relative;
    background-color: var(--nuit);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 32px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 32px);
    color: white;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 3rem 4rem;
    scroll-snap-align: start;
}

.page-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 3rem 3rem;
    scroll-snap-align: start;
}

.hero-content { max-width: 1000px; margin: 0 auto; width: 100%; }
.page-hero-content { max-width: 900px; margin: 0 auto; width: 100%; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.03em;
    color: var(--or);
    font-weight: 700;
    background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.4);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.hero-eyebrow::before {
    content: "</>";
}

.hero h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.hero p.lead {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.4rem;
    max-width: 460px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.85rem 2rem;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.btn:hover { background: #a45a1c; }

.hero-flex {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hero-flex .hero-main { flex: 1; min-width: 320px; }

.code-window {
    width: 300px;
    flex-shrink: 0;
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    overflow: hidden;
}

.code-window-bar {
    display: flex;
    gap: 6px;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--nuit-border);
}

.code-window-bar span {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: block;
    background: rgba(255,255,255,0.2);
}

.code-window-body {
    padding: 1rem 1.1rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.9;
    color: var(--vert-code);
}

.code-window-body .indent { padding-left: 1rem; color: rgba(255,255,255,0.55); }
.code-window-body .val { color: var(--or); }

.hero .features {
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 2rem;
}

.hero .feature-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hero .feature-row:last-child { border-bottom: none; }

.hero .feature-row h3 {
    font-size: 1.05rem;
    color: white;
    border-left: 3px solid var(--or);
    padding-left: 0.9rem;
}

.hero .feature-row p { color: rgba(255,255,255,0.8); }

.tech-strip {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2rem;
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-strip .tech-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.tech-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.tech-badge {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.page-hero-body p.lead {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    max-width: 420px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-card {
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 0.2rem 1.3rem;
}

.contact-item {
    font-size: 0.95rem;
    padding: 0.9rem 0;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid var(--nuit-border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.contact-item:last-child { border-bottom: none; }

.contact-item .label { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 0.85rem; }

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid var(--or);
}

.contact-info-stack { display: flex; flex-direction: column; gap: 0.9rem; }

.contact-info-card {
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}

.contact-info-card .label {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-info-card .value { color: white; font-size: 0.9rem; font-weight: 600; }

.process-strip {
    margin-top: 1.4rem;
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.process-strip .label {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    display: block;
    margin-bottom: 0.7rem;
}

.process-steps { display: flex; gap: 1.6rem; flex-wrap: wrap; }

.process-step { display: flex; align-items: center; gap: 0.5rem; }

.process-step .num {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(201,162,39,0.15);
    color: var(--or);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step .txt { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

.process-strip--top {
    margin-top: 0;
    margin-bottom: 2rem;
    padding: 1.3rem 1.5rem;
}

.process-strip--top .label {
    font-size: 0.8rem;
    margin-bottom: 0.9rem;
}

.process-strip--top .process-steps { gap: 2rem; }

.process-strip--top .process-step .num {
    width: 26px; height: 26px;
    font-size: 0.85rem;
}

.process-strip--top .process-step .txt {
    font-size: 1rem;
    font-weight: 600;
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3rem;
    min-height: 100vh;
    scroll-snap-align: start;
}

.card {
    background: white;
    border-radius: 6px;
    padding: 2.2rem;
    border: 1px solid rgba(34,51,59,0.08);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.project-card {
    grid-column: span 2;
}

/* Dernière ligne avec 1 seule carte orpheline : centrée au milieu */
.project-grid > :last-child:nth-child(3n+1) {
    grid-column: 3 / span 2;
}

/* Dernière ligne avec 2 cartes orphelines : centrées ensemble au milieu */
.project-grid > :nth-child(3n+1):nth-last-child(2) {
    grid-column: 2 / span 2;
}
.project-grid > :nth-child(3n+2):nth-last-child(1) {
    grid-column: 4 / span 2;
}

.project-card {
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.project-preview {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-preview .icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.project-card-body { padding: 1rem 1.3rem 1.2rem; }

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.project-card h3 {
    color: white;
    font-size: 1rem;
}

.project-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.project-status {
    font-size: 0.65rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    white-space: nowrap;
}

.project-status.online { color: #5DCAA5; background: rgba(93,202,165,0.1); }
.project-status.soon { color: var(--or); background: rgba(201,162,39,0.12); }
.project-status.demo { color: #9B8BD6; background: rgba(155,139,214,0.12); }

.project-stack {
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    font-family: "SFMono-Regular", Consolas, monospace;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 1.6rem;
}

.service-card h2 {
    color: var(--or);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.service-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

.service-bullets {
    list-style: none;
    margin: 0.9rem 0;
}

.service-bullets li {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.service-bullets li::before {
    content: "— ";
    color: rgba(255,255,255,0.35);
}

.service-card .tag {
    display: block;
    margin-top: 0.6rem;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    color: var(--vert-code);
    background: rgba(159,225,203,0.08);
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
}

.service-help-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.service-help-banner .label { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.service-help-banner .link { color: var(--or); font-size: 0.82rem; font-weight: 700; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
    margin-top: 2.5rem;
}

.price-card {
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
}

.price-card-featured {
    border-color: rgba(201,162,39,0.4);
}

.price-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
}

.price-label-accent { color: var(--or); }

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.7rem;
}

.price-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
}

.price-text {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.options-card {
    background: var(--nuit-card);
    border: 1px solid var(--nuit-border);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-top: 1.3rem;
}

.options-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.8rem;
}

.options-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.options-row-last { border-bottom: none; padding-bottom: 0.3rem; }

.options-name { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.options-price { font-size: 0.82rem; color: var(--vert-code); font-family: "SFMono-Regular", Consolas, monospace; }

.options-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--bleu-clair);
    font-size: 0.8rem;
    scroll-snap-align: end;
}

footer a {
    color: var(--bleu-clair);
    text-decoration: underline;
}

footer a:hover {
    color: var(--bleu);
}

@media (max-width: 720px) {
    header {
        position: static;
        background: var(--bleu);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1.2rem 1.5rem;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.2rem;
    }
    nav a { margin-left: 0; }
    html { scroll-snap-type: none; }
    .hero, .page-hero { min-height: auto; height: auto; padding-top: 3rem; }
    .hero .feature-row { grid-template-columns: 1fr; gap: 0.4rem; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { grid-column: auto; }
    .project-grid > :last-child:nth-child(3n+1) { grid-column: auto; }
    .project-grid > :nth-child(3n+1):nth-last-child(2) { grid-column: auto; }
    .project-grid > :nth-child(3n+2):nth-last-child(1) { grid-column: auto; }
    .service-grid { grid-template-columns: 1fr; }
    .hero-flex { flex-direction: column; }
    .code-window { width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .process-steps { gap: 1rem; }
    .price-grid { grid-template-columns: 1fr; }
}