@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");
@import url("reset.css");

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
    --bg: #F4F2ED;
    --ink: #16191F;
    --ink-soft: #3a3f47;
    --ink-muted: #52575f;
    --ink-faint: #6a6f77;
    --grey: #8a8f97;
    --red: #E11D26;
    --red-dark: #C1121C;
    --red-hover: #c8161f;
    --border: rgba(22, 25, 31, .10);
    --border-strong: rgba(22, 25, 31, .22);
    --dark-bg: #16191F;
    --darker-bg: #0e1116;
    --card-dark: #14171D;
    --cream-off: rgba(244, 242, 237, .7);

    --font-display: 'Archivo', sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection {
    background: var(--red);
    color: #fff;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.02;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kicker.muted {
    color: var(--grey);
}

.kicker .rule {
    width: 26px;
    height: 1px;
    background: var(--red);
    display: inline-block;
}

@keyframes pwSweep {
    0% { left: -2%; }
    100% { left: 101%; }
}

@keyframes pwRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: -.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    color: var(--ink);
    padding: 10px 4px;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
}

.button-primary {
    padding: 15px 26px;
    color: #fff;
    background: var(--red);
}

.button-primary:hover {
    background: var(--ink);
}

.button-dark {
    padding: 10px 18px;
    color: #fff;
    background: var(--ink);
}

.button-dark:hover {
    background: var(--red);
}

.button-outline {
    padding: 15px 24px;
    color: var(--ink);
    border: 1.5px solid var(--border-strong);
}

.button-outline:hover {
    border-color: var(--ink);
}

.button-light {
    padding: 16px 30px;
    color: var(--ink);
    background: var(--bg);
}

.button-light:hover {
    background: var(--red);
    color: #fff;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(244, 242, 237, .82);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
}

.wordmark .p1 {
    color: var(--ink);
}

.wordmark .p2 {
    color: var(--red);
}

footer .wordmark .p1 {
    color: var(--bg);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.nav-links a.button {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14.5px;
    color: var(--ink-soft);
    padding: 0;
}

.nav-links a.button:hover,
.nav-links a.button.active {
    color: var(--red);
    font-weight: 600;
}

.nav-links a.button-dark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.01em;
    color: #fff;
    background: var(--ink);
    padding: 10px 18px;
}

.nav-links a.button-dark:hover,
.nav-links a.button-dark.active {
    color: #fff;
    font-weight: 700;
    background: var(--red);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: clip;
    background-image: url("../images/wave-fond.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
}

.hero .wrap {
    position: relative;
    padding-top: clamp(48px, 8vw, 96px);
    padding-bottom: clamp(48px, 7vw, 96px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 74px);
    line-height: .98;
    margin: 0 0 26px;
}

.hero h1 span {
    color: var(--red);
}

.hero p {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 520px;
    margin: 0 0 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 36px);
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(90, 8, 12, .35));
}

/* ==========================================================================
   Page head (sous-pages)
   ========================================================================== */
.page-head {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 48px) clamp(32px, 4vw, 48px);
}

.page-head h1 {
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1;
    margin: 0 0 22px;
    max-width: 880px;
}

.page-head p {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 660px;
    margin: 0 0 12px;
}

/* ==========================================================================
   Sections generic
   ========================================================================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 48px);
}

.section-panel {
    position: relative;
    background: #fff;
}

.section-panel::before,
.section-panel::after,
.phase-nav::before,
.phase-nav::after,
.partners::before,
.section-dark::before,
.section-dark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(75px, 4.5vw, 54px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.section-panel::before,
.phase-nav::before,
.partners::before {
    top: 0;
    transform: translateY(-100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C150,90 350,10 600,50 C850,90 1050,10 1200,50 L1200,100 L0,100 Z' fill='%23fff'/%3E%3C/svg%3E");
}

.section-panel::after,
.phase-nav::after {
    bottom: 0;
    transform: translateY(100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C150,10 350,90 600,50 C850,10 1050,90 1200,50 L1200,0 L0,0 Z' fill='%23fff'/%3E%3C/svg%3E");
}

.partners::before {
    opacity: .4;
}

.section-dark::before {
    top: 0;
    transform: translateY(-100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C150,90 350,10 600,50 C850,90 1050,10 1200,50 L1200,100 L0,100 Z' fill='%2316191F'/%3E%3C/svg%3E");
}

.section-dark::after {
    bottom: 0;
    transform: translateY(100%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C150,10 350,90 600,50 C850,10 1050,90 1200,50 L1200,0 L0,0 Z' fill='%2316191F'/%3E%3C/svg%3E");
}

.section-dark {
    position: relative;
    background: var(--dark-bg);
    color: var(--bg);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px;
}

.section h2 {
    font-size: clamp(28px, 3.6vw, 46px);
    margin: 0;
}

.section h2.medium {
    font-size: clamp(26px, 3.4vw, 42px);
}

.section h2.small {
    font-size: clamp(24px, 3vw, 38px);
}

.section-lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 600px;
    margin: 14px 0 0;
}

.text-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--red);
    padding-bottom: 3px;
}

.text-link:hover {
    color: var(--red);
}

/* ==========================================================================
   Cards grid — steps / enjeux / metiers
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 18px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card-step {
    background: var(--bg);
    border-radius: 16px;
    padding: 30px 26px;
}

.card-step .num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 40px;
    letter-spacing: -.03em;
    color: var(--red);
    line-height: 1;
    margin-bottom: 18px;
}

.card-step .title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.01em;
    margin-bottom: 8px;
}

.card-step .desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-faint);
}

.card-plain {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 26px;
    transition: border-color .2s ease;
}

.card-plain:hover {
    border-color: rgba(225, 29, 38, .5);
}

.card-plain .kicker {
    margin-bottom: 16px;
}

.card-plain .title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.card-plain .desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

.card-method {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .2s ease;
}

.card-method:hover {
    border-color: rgba(225, 29, 38, .5);
}

.card-method .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    color: rgba(22, 25, 31, .16);
    letter-spacing: -.02em;
}

.card-method .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.01em;
    margin-bottom: 6px;
}

.card-method .desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-faint);
}

.card-metier {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s ease;
}

.card-metier:hover {
    border-color: rgba(225, 29, 38, .5);
}

.card-metier .title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.015em;
    line-height: 1.05;
}

.card-metier p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0;
}

.card-metier-all {
    text-decoration: none;
    background: var(--ink);
    color: var(--bg);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: background .2s ease;
}

.card-metier-all:hover {
    background: var(--red);
}

.card-metier-all .title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.015em;
    line-height: 1.1;
}

.card-metier-all .cta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    margin-top: 18px;
}

/* ==========================================================================
   Demo widget (accueil)
   ========================================================================== */
.demo {
    margin-top: 44px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    background: var(--card-dark);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    color: var(--bg);
}

.demo h3 {
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 12px;
}

.demo-intro p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(244, 242, 237, .62);
    margin: 0;
}

.demo-scan {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, .06);
}

.demo-scan .layer {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    text-align: center;
    opacity: 0;
    transition: opacity .5s ease .1s;
    box-sizing: border-box;
}

.demo-scan.revealed .layer {
    opacity: 1;
}

.demo-scan .layer-platre { flex-grow: 5; }
.demo-scan .layer-laine1 { flex-grow: 28; }
.demo-scan .layer-brique { flex-grow: 40; }
.demo-scan .layer-laine2 { flex-grow: 21; }
.demo-scan .layer-enduit { flex-grow: 6; }

.demo-scan .layer-name {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}

.demo-scan .layer-mm {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.demo-scan .layer-cat {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
    white-space: nowrap;
}

.demo-scan .layer-narrow {
    padding: 0;
}

.demo-scan .layer-narrow-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    width: 100%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    box-sizing: border-box;
    padding: 10px 4px;
}

.demo-scan .layer-narrow .layer-cat {
    display: none;
}

.demo-scan .layer-parement {
    background-color: #ECE3D6;
    background-image: repeating-linear-gradient(45deg, rgba(122, 94, 53, .22) 0 1px, transparent 1px 9px);
    border: 1.5px dashed rgba(122, 94, 53, .4);
    color: #5c4728;
}

.demo-scan .layer-isolant {
    background-color: #F2EAD0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 14'%3E%3Cpath d='M0,7 C6.5,1 6.5,13 13,7 C19.5,1 19.5,13 26,7' stroke='%23C9A227' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 26px 14px;
    border: 1.5px dashed rgba(154, 122, 22, .5);
    color: #7a5e12;
}

.demo-scan .layer-structurant {
    background-color: #E7E1DA;
    background-image:
        repeating-linear-gradient(45deg, rgba(90, 70, 55, .22) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(-45deg, rgba(90, 70, 55, .22) 0 1px, transparent 1px 10px);
    border: 1.5px dashed rgba(90, 70, 55, .45);
    color: #4a3c30;
}

.demo-scan .sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2%;
    width: 3px;
    background: var(--red);
    box-shadow: 0 0 24px 6px rgba(225, 29, 38, .7);
    animation: pwSweep 1.8s linear;
    display: none;
    z-index: 2;
}

.demo-scan.scanning .sweep {
    display: block;
}

.demo-scan .side-label {
    position: absolute;
    bottom: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(20, 23, 29, .6);
    opacity: 0;
    transition: opacity .4s ease .3s;
}

.demo-scan.revealed .side-label {
    opacity: 1;
}

.demo-scan .side-label.left { left: 10px; }
.demo-scan .side-label.right { right: 10px; }

.demo-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, .35);
    transition: opacity .25s ease;
    pointer-events: none;
}

.demo-scan.scanning .demo-empty,
.demo-scan.revealed .demo-empty {
    opacity: 0;
}

.demo-actions {
    margin-top: 16px;
    display: flex;
}

.demo-scan-btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.01em;
    color: #fff;
    background: var(--red);
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.demo-scan-btn:hover {
    background: var(--red-hover);
}

.demo-scan-btn:disabled {
    opacity: .7;
    cursor: default;
}

.demo-scan-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
}

/* ==========================================================================
   Stat band (page problème)
   ========================================================================== */
.stat-band {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 80px);
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(80px, 12vw, 150px);
    line-height: .82;
    letter-spacing: -.04em;
    color: var(--red);
}

.stat-caption {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.stat-source {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(244, 242, 237, .6);
    margin: 0;
}

.stat-source span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: rgba(244, 242, 237, .4);
}

/* ==========================================================================
   Consequences (2 col)
   ========================================================================== */
.consequences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 48px);
}

.consequence {
    border-top: 2px solid var(--ink);
    padding-top: 22px;
}

.consequence.accent {
    border-top-color: var(--red);
}

.consequence .title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.consequence p {
    font-size: 15px;
    line-height: 1.62;
    color: var(--ink-muted);
    margin: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    text-align: center;
}

.cta-band h2 {
    margin: 0 auto 16px;
    max-width: 680px;
}

.cta-band p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 520px;
    margin: 0 auto 32px;
}

.section-dark .cta-band p {
    color: rgba(244, 242, 237, .65);
}

/* ==========================================================================
   Partenaires marquee
   ========================================================================== */
.partners {
    position: relative;
    background: rgba(255, 255, 255, .4);
}

.partners-inner {
    padding: 36px 0;
}

.partners .kicker {
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
}

.marquee-mask {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 16px;
    animation: pwMarquee 42s linear infinite;
}

.marquee-track .logo-card {
    flex: none;
    background: #fff;
    border: 1px solid rgba(22, 25, 31, .12);
    border-radius: 12px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 88px;
}

.marquee-track .logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Résultat (page solution) — diagramme de couches
   ========================================================================== */
.result-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(22, 25, 31, .12);
}

.result-row img {
    width: 26px;
    height: 26px;
    flex: none;
}

.result-row span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(16px, 1.6vw, 20px);
    letter-spacing: -.01em;
    line-height: 1.3;
}

.wall-cut-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 10px;
}

.wall-cut {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(22, 25, 31, .12);
    box-shadow: 0 24px 50px -30px rgba(20, 23, 29, .4);
}

.wall-cut .layer {
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    justify-content: space-between;
}

.wall-cut .l-platre { flex: 1 1 0; min-height: 34px; background: linear-gradient(90deg, #EDE9E1, #DED8CC); color: #5a5247; }
.wall-cut .l-laine1 { flex: 9 1 0; background: repeating-linear-gradient(135deg, #E7C765 0 11px, #E0BC52 11px 22px); color: #6e5410; }
.wall-cut .l-brique { flex: 13 1 0; background: repeating-linear-gradient(0deg, #C26B45 0 17px, #B45F3b 17px 19px); color: #fbe9e0; }
.wall-cut .l-laine2 { flex: 7 1 0; background: repeating-linear-gradient(135deg, #E7C765 0 11px, #E0BC52 11px 22px); color: #6e5410; }
.wall-cut .l-enduit { flex: 1 1 0; min-height: 34px; background: linear-gradient(90deg, #D7D1C7, #C7C0B4); color: #5a5247; }

.wall-cut-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.wall-cut-footer .side {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--grey);
}

.wall-cut-footer .rvalue {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink);
}

.wall-cut-footer .rvalue b {
    font-family: var(--font-display);
    font-weight: 800;
}

/* ==========================================================================
   L'outil (photos) — page solution
   ========================================================================== */
.tool-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tool-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid rgba(244, 242, 237, .14);
    border-radius: 18px;
}

.tool-photo .caption {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: rgba(244, 242, 237, .5);
    margin-top: 10px;
}

/* ==========================================================================
   Garanties (attributs)
   ========================================================================== */
.attributes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.attribute {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.attribute .icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attribute .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.attribute .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.01em;
}

.attribute .desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-faint);
    max-width: 200px;
}

/* ==========================================================================
   Frise métiers
   ========================================================================== */
.phase-nav {
    position: relative;
    background: #fff;
}

.phase-nav .wrap {
    padding-top: 26px;
    padding-bottom: 26px;
}

.phase-track {
    position: relative;
}

.phase-track .rule {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 23px;
    height: 2px;
    background: rgba(22, 25, 31, .12);
}

.phase-items {
    position: relative;
    display: flex;
    gap: 8px;
}

.phase-item {
    flex: 1 1 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.phase-item .badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(22, 25, 31, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: #9a9098;
    flex: none;
    transition: border-color .2s ease, color .2s ease;
}

.phase-item:hover .badge {
    border-color: var(--red);
    color: var(--red);
}

.phase-item .phase {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9aa0a8;
    margin-bottom: 3px;
    text-align: center;
}

.phase-item .title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.01em;
    line-height: 1.2;
    color: var(--ink-soft);
    text-align: center;
}

.metiers-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 48px) clamp(48px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.metier-card {
    scroll-margin-top: 90px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(28px, 3.4vw, 48px);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.metier-card .head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.metier-card .badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    flex: none;
}

.metier-card h2 {
    font-size: clamp(24px, 2.8vw, 36px);
    margin: 0 0 16px;
}

.metier-card .need {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

.metier-card .data-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 8px;
}

.metier-card .data-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metier-card .data-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(22, 25, 31, .12);
}

.metier-card .data-row img {
    width: 24px;
    height: 24px;
    flex: none;
}

.metier-card .data-row span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(15px, 1.4vw, 18px);
    letter-spacing: -.01em;
    line-height: 1.3;
}

/* ==========================================================================
   Équipe
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s ease;
}

.team-card:hover {
    border-color: rgba(225, 29, 38, .45);
}

.team-card .photo {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: #e2ddd1;
}

.team-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-card .body {
    padding: 22px;
}

.team-card .role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}

.team-card .name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.team-card .name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.01em;
}

.team-card .li-link {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card .li-link img {
    width: 14px;
    height: 14px;
}

.team-card .desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-faint);
}

.staff-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    margin: 56px 0 20px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.staff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: none;
    overflow: hidden;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.01em;
}

.staff-card .role {
    font-size: 13px;
    color: var(--ink-faint);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--darker-bg);
    color: rgba(244, 242, 237, .7);
}

.footer-top-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 48px) 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(244, 242, 237, .55);
    max-width: 320px;
    margin: 16px 0 20px;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(244, 242, 237, .7);
    text-decoration: none;
}

.footer-linkedin:hover {
    color: var(--red);
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, .45);
    margin-bottom: 16px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(244, 242, 237, .72);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--red);
}

.footer-col span {
    font-size: 13px;
    color: rgba(244, 242, 237, .45);
}

.footer-bottom-bar {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 32px clamp(20px, 5vw, 48px);
    border-top: 1px solid rgba(244, 242, 237, .1);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-bar span {
    font-size: 12.5px;
    color: rgba(244, 242, 237, .4);
}

.footer-bottom-bar a {
    font-size: 12.5px;
    color: rgba(244, 242, 237, .5);
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: var(--red);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-main {
    background: var(--card-dark);
    color: var(--bg);
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
}

.contact-info h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    margin: 0 0 18px;
}

.contact-info p {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.6;
    color: rgba(244, 242, 237, .65);
    max-width: 400px;
    margin: 0 0 36px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-mail {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--bg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-mail:hover {
    color: var(--red);
}

.contact-li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--bg);
    text-decoration: none;
    border: 1.5px solid rgba(244, 242, 237, .25);
    border-radius: 999px;
    padding: 11px 18px;
    width: fit-content;
}

.contact-li:hover {
    border-color: var(--red);
    color: var(--red);
}

.contact-location {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: rgba(244, 242, 237, .5);
    margin-top: 6px;
}

.contact-panel {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    padding: clamp(24px, 3vw, 36px);
}

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

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(244, 242, 237, .55);
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 13px 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.01em;
    color: #fff;
    background: var(--red);
    border: none;
    border-radius: 999px;
    padding: 15px;
    cursor: pointer;
}

.contact-form button:hover {
    background: var(--red-hover);
}

.contact-sent {
    text-align: center;
    padding: 48px 10px;
    animation: pwRise .5s ease both;
}

.contact-sent .check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: #fff;
}

.contact-sent .title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
}

.contact-sent .sub {
    font-size: 14px;
    color: rgba(244, 242, 237, .6);
}

/* ==========================================================================
   Mentions légales
   ========================================================================== */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 48px) clamp(64px, 8vw, 112px);
}

.legal-page h1,
.legal-page h2 {
    margin: 1.2em 0 .5em;
}

.legal-page p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin: 0 0 1em;
}

.legal-page a {
    color: var(--red);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .navbar-inner {
        height: auto;
        flex-wrap: wrap;
        row-gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px 18px;
    }

    .nav-links a.button-dark {
        padding: 10px 18px;
    }

    .hero .wrap,
    .result-grid,
    .stat-band,
    .consequences,
    .contact-grid,
    .tool-photos {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .grid-3,
    .grid-4,
    .attributes,
    .team-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .phase-items {
        flex-wrap: wrap;
    }

    .phase-track .rule {
        display: none;
    }

    .metier-card {
        grid-template-columns: 1fr;
    }

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

    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}
