
@font-face {
    font-family: "Archivo";
    src: url("../fonts/archivo.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    --cacao: #2A1812;
    --cacao-raised: #3A2219;
    --ink: #23140F;
    --ink-soft: #66574F;
    --mould: #EDF0EF;
    --mould-deep: #DDE3E1;
    --rule: #CDD4D1;
    --paper: #F4EFEB;
    --paper-soft: rgba(244, 239, 235, 0.72);
    --paper-faint: rgba(244, 239, 235, 0.18);
    --vermilion: #FB370D;
    --vermilion-light: #FF5530;

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --wrap: 75rem;
    --gutter: clamp(1rem, 4vw, 3rem);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1, h2, h3,
p, figure, dl, dd, ol, ul {
    margin: 0;
}

ol, ul {
    padding: 0;
    list-style: none;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cacao);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 600;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
    font-stretch: 108%;
    line-height: 1.05;
    letter-spacing: -0.022em;
}

:focus-visible {
    outline: 2px solid var(--vermilion);
    outline-offset: 4px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Prix — partagé entre les produits et le rendu 3D */
.price-amount {
    font-size: 2rem;
    font-weight: 600;
    font-stretch: 110%;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.price-from,
.price-unit {
    font-size: 0.9375rem;
}

/* Traits de coupe, repris des angles du logo */
.crop {
    position: relative;
}

.crop::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    pointer-events: none;
    --c: var(--vermilion);
    --l: 1rem;
    background:
        linear-gradient(var(--c), var(--c)) left 1.5rem top 0 / 1px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) left 0 top 1.5rem / var(--l) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) right 1.5rem top 0 / 1px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) right 0 top 1.5rem / var(--l) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) left 1.5rem bottom 0 / 1px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) left 0 bottom 1.5rem / var(--l) 1px no-repeat,
        linear-gradient(var(--c), var(--c)) right 1.5rem bottom 0 / 1px var(--l) no-repeat,
        linear-gradient(var(--c), var(--c)) right 0 bottom 1.5rem / var(--l) 1px no-repeat;
}

/* En-tête et hero
   ========================================================================== */

.masthead {
    background: var(--cacao);
    color: var(--paper);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.75rem;
}

.brand {
    display: block;
    color: var(--paper);
    border-radius: 2px;
}

.logo {
    width: 3.5rem;
    height: auto;
}

.nav {
    display: flex;
    gap: 2.25rem;
    font-size: 0.9375rem;
}

.nav a {
    color: var(--paper-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: center;
    padding-block: clamp(2rem, 6vh, 4.5rem) clamp(4.5rem, 11vh, 8rem);
}

.hero-text {
    grid-column: 1 / span 7;
}

.hero h1 {
    font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.5rem);
    font-stretch: 112%;
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.lede {
    margin-top: 2rem;
    max-width: 33em;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.6;
    color: var(--paper-soft);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    margin-top: 2.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.6rem;
    background: var(--vermilion);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    font-stretch: 105%;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.button:hover {
    background: var(--vermilion-light);
}

.text-link {
    color: var(--paper);
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--paper-faint);
    text-underline-offset: 0.35em;
    transition: text-decoration-color 0.2s ease;
}

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

.hero-figure {
    grid-column: 8 / -1;
}

/* Le dessin technique de la tablette */
.blueprint {
    width: 100%;
    max-width: 29rem;
    height: auto;
    margin-inline: auto;
    overflow: visible;
}

.tablet-body {
    fill: var(--cacao-raised);
    stroke: rgba(255, 236, 224, 0.07);
    stroke-width: 1;
}

.tablet-bevel {
    fill: none;
    stroke: rgba(0, 0, 0, 0.28);
    stroke-width: 2;
}

.relief {
    fill: #45291E;
}

.relief-light {
    fill: rgba(255, 226, 206, 0.16);
}

.relief-shadow {
    fill: rgba(0, 0, 0, 0.5);
}

.relief-ring {
    fill: rgba(255, 226, 206, 0.12);
}

.bp-line {
    fill: none;
    stroke-width: 1.25;
    stroke-linecap: square;
}

.bp-marks .bp-line,
.bp-callout .bp-line {
    stroke: var(--vermilion);
}

.bp-dims .bp-line {
    stroke: var(--paper-soft);
    stroke-width: 1;
}

.bp-dot {
    fill: var(--vermilion);
}

.bp-label {
    fill: var(--paper);
    font-size: 15px;
    font-stretch: 105%;
    letter-spacing: 0.01em;
    font-variant-numeric: lining-nums tabular-nums;
}

.bp-dims .bp-label {
    fill: var(--paper-soft);
}

/* Un seul moment animé : le tracé du dessin au chargement */
@keyframes bp-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes bp-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@keyframes bp-fade {
    to { opacity: 1; }
}

.bp-tablet {
    animation: bp-rise 0.9s var(--ease) both;
}

.bp-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: bp-draw 0.8s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}

.bp-label,
.bp-dot {
    opacity: 0;
    animation: bp-fade 0.5s ease forwards;
    animation-delay: var(--d, 1.1s);
}

/* Délais du tracé (anciennement en attributs style="--d:…", déplacés ici
   pour que la Content-Security-Policy n'ait pas besoin de 'unsafe-inline') */
.d015 { --d: 0.15s; }
.d025 { --d: 0.25s; }
.d035 { --d: 0.35s; }
.d045 { --d: 0.45s; }
.d070 { --d: 0.7s; }
.d085 { --d: 0.85s; }
.d110 { --d: 1.1s; }
.d120 { --d: 1.2s; }
.d125 { --d: 1.25s; }
.d140 { --d: 1.4s; }
.d145 { --d: 1.45s; }

/* Produits
   ========================================================================== */

.offer {
    background: var(--mould);
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.offer-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.offer-head h2 {
    grid-column: 1 / span 6;
}

.offer-head p {
    grid-column: 8 / -1;
    max-width: 30em;
    color: var(--ink-soft);
}

.step {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "num body media";
    column-gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--rule);
}

.step:last-child {
    padding-bottom: 0;
}

.step-num {
    grid-area: num;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--vermilion);
    font-variant-numeric: lining-nums;
}

.step-body {
    grid-area: body;
}

.step h3 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-stretch: 108%;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.step-body > p {
    margin-top: 1rem;
    max-width: 34em;
    color: var(--ink-soft);
}

.specs {
    margin-top: 2rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9375rem;
}

.specs > div {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--rule);
}

.specs dt {
    color: var(--ink-soft);
}

.specs .price {
    align-items: baseline;
    padding-top: 1.25rem;
    border-bottom: 0;
}

.specs .price-from,
.specs .price-unit {
    color: var(--ink-soft);
}

.step-media {
    grid-area: media;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    background: var(--mould-deep);
}

.step-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact
   ========================================================================== */

.contact {
    background: var(--cacao);
    color: var(--paper);
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
}

.contact-main {
    grid-column: 1 / span 7;
}

.contact-main p {
    margin-top: 1.25rem;
    max-width: 32em;
    color: var(--paper-soft);
}

.contact-main h2 + p {
    margin-top: 1.75rem;
}

.mail {
    display: inline-block;
    margin-top: 2.5rem;
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    font-weight: 500;
    font-stretch: 106%;
    letter-spacing: -0.015em;
    color: var(--vermilion);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: text-decoration-thickness 0.15s ease;
}

.mail:hover {
    text-decoration-thickness: 2px;
}

.render {
    grid-column: 9 / -1;
    padding: 0.25rem 0;
    margin: 1.5rem;
}

.render h3 {
    font-size: 1.25rem;
    font-stretch: 105%;
    line-height: 1.25;
}

.render-price {
    margin-top: 1rem;
}

.render-price .price-amount {
    font-size: 2.5rem;
}

.render-price .price-unit {
    color: var(--paper-soft);
}

.render p:last-child {
    margin-top: 0.75rem;
    color: var(--paper-soft);
    font-size: 0.9375rem;
}

/* Pied de page
   ========================================================================== */

.site-footer {
    background: var(--cacao);
    color: var(--paper-soft);
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-block: 1.75rem 2rem;
    border-top: 1px solid var(--paper-faint);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--paper);
    text-decoration: none;
    transition: color 0.2s ease;
}

.socials a:hover {
    color: var(--vermilion);
}

/* Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .hero-text,
    .hero-figure,
    .offer-head h2,
    .offer-head p,
    .contact-main {
        grid-column: 1 / -1;
    }

    .hero-figure {
        margin-top: 3.5rem;
    }

    .blueprint {
        max-width: 24rem;
    }

    .offer-head p {
        margin-top: 1.25rem;
    }

    .step {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        grid-template-areas:
            "num body"
            ".   media";
    }

    .step-media {
        margin-top: 2rem;
    }

    .render {
        grid-column: 1 / span 8;
        margin-top: 4rem;
    }
}

@media (max-width: 600px) {
    .nav-secondary {
        display: none;
    }

    .logo {
        width: 3rem;
    }

    .bar {
        padding-block: 1.25rem;
    }

    .hero h1 {
        max-width: none;
    }

    .step {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "num"
            "body"
            "media";
    }

    .step-num {
        margin-bottom: 0.5rem;
    }

    .specs > div {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.15rem;
    }

    .specs .price {
        padding-top: 1rem;
    }

    .render {
        grid-column: 1 / -1;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .bp-tablet,
    .bp-line,
    .bp-label,
    .bp-dot {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
    }
}