/* ============================================
   MANUWD V2 — Personality layer
   Loaded after styles.css — overrides only
   ============================================ */

/* ------------------------------------------
   0. PALETTE — Option 1 : Terracotta / Rust
   Warm, artisanal, cosy
   ------------------------------------------ */
:root {
    --accent:       #bf5530;
    --accent-strong:#9e3f1e;
    --accent-soft:  #f5ddd5;
    --warm:         #d4943a;
    --bg:           #ede8df;
    --bg-deep:      #20100a;
    --text:         #1e1008;
    --muted:        #6b5040;
    --surface:      rgba(255, 250, 245, 0.72);
}

/* Page background — terracotta + amber orbs */
body {
    background:
        radial-gradient(circle at top left,  rgba(191, 85, 48, 0.11), transparent 28%),
        radial-gradient(circle at 85% 15%,   rgba(212, 148, 58, 0.13), transparent 20%),
        linear-gradient(180deg, #f5ede4 0%, #ede5d8 42%, #f2ebe0 100%);
}

/* Floating orbs */
.orb-one { background: rgba(191, 85, 48, 0.18); }
.orb-two { background: rgba(212, 148, 58, 0.14); }

/* Page grid stays but tinted warm */
.page-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
}

/* Brand mark — warm espresso */
.brand-mark {
    background: linear-gradient(135deg, var(--bg-deep), #3d1e0e);
}

/* Nav underline */
.site-nav a::after {
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Section-dark background + ambient glow */
.section-dark { background: var(--bg-deep); }

.section-dark::before {
    background:
        radial-gradient(circle at 8%  60%, rgba(191, 85, 48, 0.18), transparent 38%),
        radial-gradient(circle at 88% 25%, rgba(212, 148, 58, 0.10), transparent 32%);
}

/* Pour qui — teal tint → terracotta tint */
.forqui-shell {
    background:
        linear-gradient(135deg, rgba(191, 85, 48, 0.07), rgba(191, 85, 48, 0.02)),
        rgba(255, 255, 255, 0.62);
    border-color: rgba(191, 85, 48, 0.12);
}

.fqi-asso  { background: linear-gradient(135deg, rgba(191, 85, 48, 0.18), rgba(191, 85, 48, 0.38)); }
.fqi-indep { background: linear-gradient(135deg, rgba(212, 148, 58, 0.18), rgba(212, 148, 58, 0.38)); }
.fqi-pme   { background: linear-gradient(135deg, rgba(32, 16, 10, 0.14),  rgba(32, 16, 10, 0.28)); }
.fqi-perso { background: linear-gradient(135deg, rgba(120, 60, 30, 0.14), rgba(120, 60, 30, 0.28)); }

/* Letter top stripe */
.letter-wrap::before {
    background: linear-gradient(90deg,
        rgba(191, 85, 48, 0.4),
        rgba(191, 85, 48, 0.15) 40%,
        rgba(212, 148, 58, 0.15) 60%,
        rgba(212, 148, 58, 0.4));
}

/* Send button */
.letter-send-btn {
    background: linear-gradient(135deg, var(--bg-deep), #3d1e0e);
    box-shadow: 0 8px 20px rgba(32, 16, 10, 0.3);
}
.letter-send-btn:hover {
    box-shadow: 0 16px 32px rgba(32, 16, 10, 0.4);
}

/* ------------------------------------------
   1. GRAIN TEXTURE
   A fixed noise overlay that adds tactile
   depth and kills the "digital brochure" feel
   ------------------------------------------ */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    background-repeat: repeat;
}

/* ------------------------------------------
   2. SERVICES — Asymmetric bento grid
   Web (large) · Mobile · Graphisme · Video (large)
   ------------------------------------------ */
.services-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.service-card-wide {
    grid-column: span 2;
}

@media (max-width: 1100px) {
    .services-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .service-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 820px) {
    .services-bento {
        grid-template-columns: 1fr !important;
    }
}

/* ------------------------------------------
   3. SMOOTH DIRECTIONAL CURSOR
   SVG arrow that rotates toward movement,
   grows and changes color on interactive elements
   ------------------------------------------ */
.smooth-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    color: var(--accent);
    transition: color 220ms ease;
}

.cursor-arrow {
    width: 16px;
    height: 24px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(15, 141, 129, 0.35));
    transition: width 220ms ease, height 220ms ease, filter 220ms ease;
}

body.has-custom-cursor,
body.has-custom-cursor * {
    cursor: none !important;
}

/* On interactive elements: grow + turn warm orange */
body.cursor-on-interactive .smooth-cursor {
    color: var(--warm);
}

body.cursor-on-interactive .cursor-arrow {
    width: 22px;
    height: 33px;
    filter: drop-shadow(0 3px 10px rgba(255, 139, 89, 0.45));
}

@media (hover: none) {
    .smooth-cursor { display: none; }
}

/* ------------------------------------------
   4. HERO GRAPHIC ELEMENTS — A / B / C
   ------------------------------------------ */

/* A — Hand-brush underline on the em word */
.hero-em,.hero-em-u {
    position: relative;
    text-decoration: none;
}
.hero-em-u::after {
    content: "";
    position: absolute;
    left: -3%;
    bottom: -0.22em;
    width: 106%;
    height: 0.55em;
    background-image: url('../assets/img/brush-underline.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

/* B — Scattered hand-drawn marks (individual span elements) */
.hero-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hm {
    position: absolute;
    color: rgba(191, 85, 48, 0.28);
    display: block;
}

.hm-cross {
    width: 12px;
    height: 12px;
}
.hm-cross::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 1px;
}
.hm-cross::after {
    content: "";
    position: absolute;
    width: 1.5px;
    height: 100%;
    background: currentColor;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.hm-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.hm-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
}

.hm-dash {
    width: 14px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
}

/* C — Ghost letter M, very light */
.hero-ghost-letter {
    position: absolute;
    right: -9vw;
    top: 45%;
    transform: translateY(-50%);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(24rem, 90vw, 103rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(30, 16, 8, 0.035);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.05em;
}

/* Hero section must be relative for absolute children */
.hero.section {
    position: relative;
    overflow: hidden;
}

/* Keep hero content above decorations */
.hero .container {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------
   5. HERO V2 — Full-viewport typographic
   Removes the two-column template layout,
   replaces with centered bold statement
   ------------------------------------------ */

/* Two-column hero: text left, pour qui right */
.hero .hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Hide the placeholder image column */
.hero-stage {
    display: none !important;
}

/* Hide the old stats cards */
.stats-grid {
    display: none !important;
}

.hero-v2 {
    text-align: left;
    margin: 0;
    padding: 5rem 0 3rem;
}

.hero-v2 .eyebrow {
    margin-bottom: 2rem;
}

.hero-v2 h1 {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(3rem, 4.5vw, 5.6rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 1.6rem;
    max-width: 18ch;
    text-wrap: balance;
}

.hero-v2 h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-v2 .hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    max-width: 36rem;
    margin: 0 0 2.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.hero-v2 .hero-actions {
    justify-content: flex-start;
    margin: 0;
}

/* Right column: pour qui panel — slightly smaller type, top padding aligns with h1 area */
.hero-aside {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.hero-aside h2 {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.hero-aside > p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.4rem;
}

@media (max-width: 820px) {
    .hero .hero-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-v2 {
        padding: 3rem 0 2rem;
    }

    .hero-aside {
        padding-top: 0;
        padding-bottom: 2.5rem;
    }

    .hero-v2 h1 {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }
}

/* ------------------------------------------
   3. SKILLS MARQUEE
   Scrolling ticker of tools / skills
   ------------------------------------------ */
.marquee-strip {
    overflow: hidden;
    margin-top: 3rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(18, 38, 32, 0.09);
    border-bottom: 1px solid rgba(18, 38, 32, 0.09);
    position: relative;
    z-index: 1;
}

/* Fade edges */
.marquee-strip::before,
.marquee-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6rem;
    z-index: 2;
    pointer-events: none;
}

.marquee-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-strip::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.marquee-track .dot {
    color: var(--accent);
    opacity: 0.55;
    font-weight: 400;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* ------------------------------------------
   5. PROJECT LAYOUTS — A / B / C comparison
   ------------------------------------------ */
.project-compare {
    display: grid;
    gap: 0.6rem;
}

.compare-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
    padding: 1.4rem 0 0.3rem;
}

.compare-note {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* --- Option A : card classique --- */
.proj-card-a {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(18, 38, 32, 0.06);
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(18, 38, 32, 0.05);
    backdrop-filter: blur(10px);
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.proj-card-a:hover {
    box-shadow: 0 20px 40px rgba(18, 38, 32, 0.1);
    transform: translateY(-2px);
}

.proj-frame-a {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(18, 38, 32, 0.06);
}

.proj-frame-a .project-placeholder {
    min-height: 20rem;
}

.proj-body-a {
    padding: 1.35rem 1.5rem 1.6rem;
}

.proj-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.proj-body-a h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.proj-body-a p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.1rem;
}

/* --- Option B : horizontal (already in place) --- */
.project-list-heading {
    margin-bottom: 2rem;
}

.project-list-heading h2,
.project-list-heading + .project-list-heading h2 {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0.6rem 0 0;
}

.project-list {
    display: grid;
    gap: 1.2rem;
}

.project-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(18, 38, 32, 0.06);
    border-radius: 1.8rem;
    box-shadow: 0 10px 24px rgba(18, 38, 32, 0.05);
    backdrop-filter: blur(10px);
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.project-row:hover {
    box-shadow: 0 20px 40px rgba(18, 38, 32, 0.1);
    transform: translateY(-2px);
}

.project-frame-v2 {
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(18, 38, 32, 0.08);
}

.browser-frame-v2 .frame-bar {
    display: flex;
    gap: 0.34rem;
    padding: 0.65rem 0.8rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(18, 38, 32, 0.06);
}

.browser-frame-v2 .frame-bar span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: rgba(18, 38, 32, 0.16);
}

.phone-frame-v2 {
    max-width: 13rem;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 0.55rem;
    background: linear-gradient(180deg, #1b2527, #090f12);
    box-shadow: 0 24px 34px rgba(18, 38, 32, 0.2);
}

.phone-frame-v2 .project-placeholder { min-height: 24rem; border-radius: 1.55rem; }

.project-placeholder { min-height: 18rem; display: block; }
.ph-teal   { background: linear-gradient(135deg, #0d3d37, #1a7a6e); }
.ph-warm   { background: linear-gradient(135deg, #3d2010, #c4612a); }
.ph-slate  { background: linear-gradient(135deg, #141c26, #3a5070); }
.ph-purple { background: linear-gradient(135deg, #1e1030, #5a3090); }
.ph-olive  { background: linear-gradient(135deg, #1e2a10, #4e7a20); }
.ph-navy   { background: linear-gradient(135deg, #0e1828, #1e3a5f); }
.ph-rose   { background: linear-gradient(135deg, #2d1020, #8a2d50); }
.ph-forest { background: linear-gradient(135deg, #0e2818, #1e6040); }
.ph-indigo { background: linear-gradient(135deg, #141030, #3a2880); }
.ph-brown  { background: linear-gradient(135deg, #28180a, #6e3e14); }

.project-row-copy { padding: 0.5rem 0; }

.project-num {
    display: block;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(18, 38, 32, 0.07);
    letter-spacing: -0.04em;
    margin-bottom: -0.8rem;
}

.project-row-copy .project-type { margin-bottom: 0.5rem; }

.project-row-copy h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.project-row-copy p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.2rem;
    max-width: 36ch;
}

/* --- Option C : plein cadre avec overlay --- */
.proj-card-c {
    border-radius: 1.8rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 24px rgba(18, 38, 32, 0.12);
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.proj-card-c:hover {
    box-shadow: 0 24px 48px rgba(18, 38, 32, 0.18);
    transform: translateY(-2px);
}

.proj-visual-c {
    min-height: 28rem;
    display: block;
}

.proj-overlay-c {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem;
    background: linear-gradient(transparent, rgba(8, 22, 18, 0.92) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.proj-overlay-left h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0.45rem 0 0.8rem;
    letter-spacing: -0.02em;
}

.proj-overlay-c .project-type {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.78);
}

.proj-overlay-c .project-stack span {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
}

.proj-arrow-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
    transition: background 180ms ease, transform 180ms ease;
}

.proj-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

/* Shared */
.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.project-stack span {
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 141, 129, 0.1);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-strong);
    transition: gap 180ms ease;
}

.project-link:hover { gap: 0.85rem; }

@media (max-width: 820px) {
    .project-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ------------------------------------------
   6. PROJECT LIST — Horizontal rows
   Image left · Copy right · One per row
   ------------------------------------------ */
.project-list-heading {
    margin-bottom: 2rem;
}

.project-list-heading h2 {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0.6rem 0 0;
}

.project-list {
    display: grid;
    gap: 1.2rem;
}

.project-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(18, 38, 32, 0.06);
    border-radius: 1.8rem;
    box-shadow: 0 10px 24px rgba(18, 38, 32, 0.05);
    backdrop-filter: blur(10px);
    transition: box-shadow 220ms ease, transform 220ms ease;
}

.project-row:hover {
    box-shadow: 0 20px 40px rgba(18, 38, 32, 0.1);
    transform: translateY(-2px);
}

/* Browser frame */
.project-frame-v2 {
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(18, 38, 32, 0.08);
}

.browser-frame-v2 .frame-bar {
    display: flex;
    gap: 0.34rem;
    padding: 0.65rem 0.8rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(18, 38, 32, 0.06);
}

.browser-frame-v2 .frame-bar span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: rgba(18, 38, 32, 0.16);
}

/* Phone frame */
.phone-frame-v2 {
    max-width: 13rem;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 0.55rem;
    background: linear-gradient(180deg, #1b2527, #090f12);
    box-shadow: 0 24px 34px rgba(18, 38, 32, 0.2);
}

.phone-frame-v2 .project-placeholder {
    border-radius: 1.55rem;
    min-height: 24rem;
}

/* Placeholder colors — replace with real screenshots */
.project-placeholder {
    min-height: 18rem;
    display: block;
}

.ph-teal   { background: linear-gradient(135deg, #0d3d37, #1a7a6e); }
.ph-warm   { background: linear-gradient(135deg, #3d2010, #c4612a); }
.ph-slate  { background: linear-gradient(135deg, #141c26, #3a5070); }
.ph-purple { background: linear-gradient(135deg, #1e1030, #5a3090); }
.ph-olive  { background: linear-gradient(135deg, #1e2a10, #4e7a20); }
.ph-navy   { background: linear-gradient(135deg, #0e1828, #1e3a5f); }
.ph-rose   { background: linear-gradient(135deg, #2d1020, #8a2d50); }
.ph-forest { background: linear-gradient(135deg, #0e2818, #1e6040); }
.ph-indigo { background: linear-gradient(135deg, #141030, #3a2880); }
.ph-brown  { background: linear-gradient(135deg, #28180a, #6e3e14); }

/* Copy column */
.project-row-copy {
    padding: 0.5rem 0;
}

.project-num {
    display: block;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(18, 38, 32, 0.07);
    letter-spacing: -0.04em;
    margin-bottom: -0.8rem;
}

.project-row-copy .project-type {
    margin-bottom: 0.5rem;
}

.project-row-copy h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.project-row-copy p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 1.2rem;
    max-width: 36ch;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.project-stack span {
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 141, 129, 0.1);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-strong);
    transition: gap 180ms ease;
}

.project-link:hover {
    gap: 0.85rem;
}

@media (max-width: 820px) {
    .project-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .phone-frame-v2 {
        max-width: 10rem;
    }

    .phone-frame-v2 .project-placeholder {
        min-height: 18rem;
    }
}

/* ------------------------------------------
   7. POUR QUI — Accessibility / pricing values
   Lead with WHO, not with price
   ------------------------------------------ */
.forqui-shell {
    display: block;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: start;
    padding: 1.2rem;
    border-radius: 2rem;
    background:
        linear-gradient(135deg, rgba(15, 141, 129, 0.07), rgba(15, 141, 129, 0.02)),
        rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(15, 141, 129, 0.12);
    box-shadow: 0 12px 32px rgba(18, 38, 32, 0.07);
    backdrop-filter: blur(12px);
    margin: 5rem 0 3rem;
}

.forqui-copy .eyebrow {
    margin-bottom: 1.2rem;
}

.forqui-copy h2 {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1rem;
}

.forqui-copy > p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 0.6rem;
}

.forqui-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 0.6rem;
}

.forqui-pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 141, 129, 0.1);
    border: 1px solid rgba(15, 141, 129, 0.16);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

/* 2x2 profile grid */
.forqui-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.forqui-card {
    padding: 1.25rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 38, 32, 0.06);
    box-shadow: 0 6px 18px rgba(18, 38, 32, 0.05);
    position: relative;
}

.forqui-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.9rem;
    margin-bottom: 0.9rem;
    position: absolute;
    right: 8px;
    top: 8px;
}

/* Icon fills — color-coded per profile */
.fqi-asso  { background: linear-gradient(135deg, rgba(15,141,129,0.18), rgba(15,141,129,0.38)); }
.fqi-indep { background: linear-gradient(135deg, rgba(255,139,89,0.18), rgba(255,139,89,0.38)); }
.fqi-pme   { background: linear-gradient(135deg, rgba(16,50,45,0.14), rgba(16,50,45,0.28)); }
.fqi-perso { background: linear-gradient(135deg, rgba(90,48,145,0.14), rgba(90,48,145,0.28)); }

/* Dot accent on each icon */
.forqui-icon::after {
    content: "";
    position: absolute;
    bottom: 0.45rem;
    right: 0.45rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
}

.forqui-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
    letter-spacing: -0.01em;
}

.forqui-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1100px) {
    .forqui-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 820px) {
    .forqui-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------
   9. LETTER CONTACT
   Cream paper floating on dark background
   ------------------------------------------ */

/* Section header above the letter */
.letter-section-header {
    text-align: center;
    margin-bottom: 2.4rem;
}

.letter-section-header .eyebrow {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.letter-section-header h2 {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 0.6rem;
}

.letter-section-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin: 0;
}

/* The letter itself */
.letter-wrap {
    max-width: 54rem;
    margin: 0 auto;
    background: #faf8f3;
    border-radius: 0.5rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 32px 80px rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

/* Subtle fold crease at top */
.letter-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(15, 141, 129, 0.35),
        rgba(15, 141, 129, 0.15) 40%,
        rgba(255, 139, 89, 0.15) 60%,
        rgba(255, 139, 89, 0.35));
}

/* De | À header */
.letter-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 2.4rem 1.6rem;
    border-bottom: 1px solid rgba(18, 38, 32, 0.1);
}

.letter-side-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

/* Sender inputs */
.letter-input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(18, 38, 32, 0.13);
    padding: 0.4rem 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 200ms ease;
    margin-bottom: 0.55rem;
}

.letter-input:focus {
    border-bottom-color: var(--accent);
}

.letter-input::placeholder {
    color: rgba(18, 38, 32, 0.25);
}

/* Recipient (static) */
.letter-to {
    text-align: right;
}

.letter-to-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.letter-to-detail {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

.letter-date {
    font-size: 0.82rem;
    color: rgba(18, 38, 32, 0.38);
    margin-top: 0.7rem;
    font-style: italic;
}

/* Subject line */
.letter-subject-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 2.4rem;
    border-bottom: 1px solid rgba(18, 38, 32, 0.08);
    background: rgba(18, 38, 32, 0.025);
}

.letter-subject-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.letter-subject-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: "Caveat", cursive;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    outline: none;
    padding: 0;
}

.letter-subject-input::placeholder {
    color: rgba(18, 38, 32, 0.22);
}

/* Message body with ruled lines */
.letter-body {
    padding: 0.5rem 2.4rem 0;
}

.letter-body textarea {
    display: block;
    width: 100%;
    min-height: 13rem;
    background: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(18, 38, 32, 0.07) 31px,
        rgba(18, 38, 32, 0.07) 32px
    );
    border: none;
    outline: none;
    font-family: "Caveat", cursive;
    font-size: 1.22rem;
    color: var(--text);
    line-height: 32px;
    padding: 6px 0 0;
    resize: none;
    caret-color: var(--accent);
}

.letter-body textarea::placeholder {
    color: rgba(18, 38, 32, 0.2);
}

/* Footer / send */
.letter-footer {
    padding: 1.2rem 2.4rem 1.8rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid rgba(18, 38, 32, 0.07);
}

.letter-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bg-deep), #1b5249);
    color: #fff;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 50, 45, 0.3);
    transition: transform 180ms ease, box-shadow 180ms ease, gap 180ms ease;
}

.letter-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(16, 50, 45, 0.4);
    gap: 1rem;
}

.letter-send-arrow {
    font-size: 1.05rem;
}

@media (max-width: 820px) {
    .letter-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .letter-to {
        text-align: left;
        padding-top: 1rem;
        border-top: 1px solid rgba(18, 38, 32, 0.1);
    }

    .letter-body,
    .letter-subject-row,
    .letter-footer {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .letter-top {
        padding: 1.4rem;
    }
}

/* ------------------------------------------
   10. DARK SECTION — Contact + Footer
   One dramatic dark block to break the
   all-light monotony and create contrast
   ------------------------------------------ */
.section-dark {
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

/* Ambient glow inside dark section */
.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 60%, rgba(15, 141, 129, 0.2), transparent 38%),
        radial-gradient(circle at 88% 25%, rgba(255, 139, 89, 0.1), transparent 32%);
    pointer-events: none;
    z-index: 0;
}

/* Reset the light card look — the dark section IS the background */
.section-dark .contact-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
}

.section-dark .contact-shell .eyebrow {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}

.section-dark .contact-shell h2 {
    color: #fff;
}

.section-dark .contact-shell p {
    color: rgba(255, 255, 255, 0.58);
}

/* Dark pills */
.section-dark .contact-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transition: transform 180ms ease, background 180ms ease;
}

.section-dark .contact-pill:hover,
.section-dark .contact-pill:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.section-dark .contact-pill span {
    color: rgba(255, 255, 255, 0.5);
}

.section-dark .contact-pill strong {
    color: #fff;
}

.section-dark .contact-pill-muted {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Footer continues the dark theme */
.site-footer {
    background: var(--bg-deep);
}

.site-footer .footer-inner {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.38);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.38);
    transition: color 180ms ease;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.75);
}
