/* =========================================================================
   L'ARTISAN — Direction « Fiche technique de chantier »
   Béton + bleu de travail + jaune hi-vis · Saira Condensed / IBM Plex
   Plat, bordures franches, ombres portées dures. Zéro dégradé SaaS.
   ========================================================================= */

:root {
    /* Ground : béton / plâtre */
    --beton:      #E4E3DD;
    --beton-2:    #D7D6CE;
    --blanc:      #FBFBF8;

    /* Bleu de travail */
    --bleu:       #21446A;
    --bleu-2:     #2B5688;
    --nuit:       #14273B;

    /* Encre + hi-vis */
    --ink:        #191C1F;
    --ink-2:      #4A4E52;
    --jaune:      #F4B70A;
    --jaune-2:    #FFC72C;

    --danger:     #B42318;
    --success:    #1A7A45;

    --line:       #C4C3BA;

    --f-disp: 'Saira Condensed', 'Arial Narrow', sans-serif;
    --f-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --f-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

    --shadow-hard: 5px 5px 0 var(--ink);
    --shadow-hard-sm: 3px 3px 0 var(--ink);
    --container: 1200px;
    --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--beton);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, .btn, input, textarea, select { touch-action: manipulation; }

h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; line-height: .98; text-transform: uppercase; letter-spacing: .005em; color: var(--ink); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 3px solid var(--bleu);
    outline-offset: 2px;
}

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: 84px; }
.section--blue { background: var(--nuit); color: #E9EDF2; }
.section--blue h1, .section--blue h2, .section--blue h3 { color: #fff; }

/* Kicker mono : le fil technique du site */
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono); font-size: 13px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--bleu);
    margin-bottom: 22px;
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--jaune); }
.section--blue .kicker { color: var(--jaune-2); }

.h-xl { font-family: var(--f-disp); font-weight: 800; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -.005em; }
.h-xl .mark { padding: .02em .14em; line-height: 1.15; }
.h-lg { font-family: var(--f-disp); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: .95; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; line-height: 1.55; }
.section--blue .lead { color: #B9C4D1; }

/* Surligneur hi-vis (au stabilo) */
.mark { background: var(--jaune); color: var(--ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.mono { font-family: var(--f-mono); }

/* ---------- Boutons (plats, bordure franche, ombre dure) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    font-size: 17px; line-height: 1; padding: 15px 24px;
    border: 2px solid var(--ink); background: var(--blanc); color: var(--ink);
    box-shadow: var(--shadow-hard-sm);
    transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--jaune); color: var(--ink); }
.btn-blue { background: var(--bleu); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; }
.btn-lg { font-size: 19px; padding: 17px 28px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
.section--blue .btn-ghost { border-color: #fff; color: #fff; box-shadow: 3px 3px 0 var(--jaune); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--beton); border-bottom: 2px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; background: var(--bleu); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--jaune); }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-family: var(--f-disp); font-weight: 800; font-size: 25px; letter-spacing: .02em; }
.brand-name span { color: var(--bleu); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-family: var(--f-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.active { color: var(--bleu); box-shadow: inset 0 -3px 0 var(--jaune); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: var(--blanc); border: 2px solid var(--ink); padding: 8px; color: var(--ink); }

/* ---------- Hero : fiche technique ---------- */
.hero { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
/* papier millimétré */
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .5; z-index: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding-block: 84px; }
.hero h1 { margin-bottom: 22px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-tag { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: var(--blanc); border: 1.5px solid var(--ink); padding: 6px 11px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Fiche dessinée (signature) */
.fiche { position: relative; background: var(--blanc); border: 2px solid var(--ink); box-shadow: var(--shadow-hard); padding: 26px; }
.fiche-ref { position: absolute; top: -13px; left: 20px; background: var(--jaune); border: 2px solid var(--ink); font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; padding: 3px 10px; }
.fiche-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); margin-bottom: 16px; margin-top: 8px; }
.fiche-ic { width: 46px; height: 46px; background: var(--bleu); border: 2px solid var(--ink); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.fiche-ic svg { width: 24px; height: 24px; }
.fiche-head h3 { font-size: 24px; line-height: .95; }
.fiche-sub { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.fiche-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.fiche-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; }
.fiche-list li svg { width: 18px; height: 18px; color: var(--bleu); flex-shrink: 0; margin-top: 3px; }
/* lignes de cote */
.cote { position: absolute; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--bleu); background: var(--beton); padding: 2px 6px; }
.cote-h { top: 50%; right: -16px; transform: translateY(-50%); }
.cote-v { left: 50%; bottom: -15px; transform: translateX(-50%); }
.fiche-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink); }
.fiche-price b { font-family: var(--f-disp); font-weight: 800; font-size: 32px; }
.fiche-price .mono { font-size: 12px; color: var(--ink-2); }

/* ---------- Bandeau chiffres ---------- */
.stripe { background: var(--ink); color: #fff; }
.stripe-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stripe-item { padding: 26px 28px; border-right: 1px solid rgba(255,255,255,.16); }
.stripe-item:last-child { border-right: 0; }
.stripe-item b { font-family: var(--f-disp); font-weight: 800; font-size: 34px; display: block; line-height: 1; color: var(--jaune); }
.stripe-item span { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: #C9CDD2; }

/* ---------- Section head ---------- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.wide { max-width: 820px; }

/* ---------- Cartes formation = plaques ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f-card { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 2px solid var(--ink); box-shadow: var(--shadow-hard-sm); transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.f-card:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.f-card-ref { position: absolute; top: 0; right: 0; background: var(--jaune); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; }
.f-card-media { position: relative; aspect-ratio: 8 / 5; border-bottom: 2px solid var(--ink); overflow: hidden; background: var(--beton-2); }
.f-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-ic { width: 52px; height: 52px; background: var(--bleu); border: 2px solid var(--ink); display: grid; place-items: center; color: #fff; }
.f-ic svg { width: 26px; height: 26px; }
.f-card-media .f-ic { position: absolute; left: 18px; bottom: -26px; z-index: 2; box-shadow: var(--shadow-hard-sm); }
.f-card-body { padding: 40px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.f-cat { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--bleu); margin-bottom: 8px; }
.f-card-body h3 { font-size: 24px; margin-bottom: 10px; }
.f-card-body h3 a:hover { color: var(--bleu); }
.f-card-body p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.f-spec { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.f-spec span { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); border: 1.5px solid var(--line); padding: 4px 8px; }
.f-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line); }
.f-price { font-family: var(--f-disp); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.f-price small { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--ink-2); }

/* ---------- Process (vraie séquence → numéros justifiés) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--blanc); border: 2px solid var(--ink); padding: 28px 24px; }
.step-n { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--bleu); border-bottom: 3px solid var(--jaune); display: inline-block; padding-bottom: 3px; margin-bottom: 16px; letter-spacing: .05em; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Témoignages ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--blanc); border: 2px solid var(--ink); padding: 26px; box-shadow: var(--shadow-hard-sm); }
.quote-stars { font-family: var(--f-mono); color: var(--bleu); letter-spacing: 2px; margin-bottom: 12px; font-size: 14px; }
.quote p { font-size: 15.5px; }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--line); }
.quote-av { width: 42px; height: 42px; background: var(--bleu); color: var(--jaune); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--f-disp); font-weight: 800; font-size: 16px; }
.quote-by b { font-family: var(--f-disp); font-weight: 700; font-size: 17px; text-transform: uppercase; display: block; line-height: 1; }
.quote-by span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta-band { background: var(--bleu); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-hard); padding: 52px; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #C9D6E4; margin-top: 14px; max-width: 50ch; }
.cta-band .hero-actions { margin-top: 28px; }

/* ---------- Images ---------- */
.detail-banner-wrap { margin-top: 40px; }
.detail-banner { border: 2px solid var(--ink); box-shadow: var(--shadow-hard); overflow: hidden; aspect-ratio: 24 / 8; background: var(--beton-2); }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.band { position: relative; border-block: 2px solid var(--ink); overflow: hidden; background: var(--nuit); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-overlay { position: relative; background: linear-gradient(90deg, rgba(20,39,59,.94) 0%, rgba(20,39,59,.7) 55%, rgba(20,39,59,.3) 100%); padding: 78px 0; }
.band-overlay .kicker { color: var(--jaune-2); }
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: #CBD6E2; margin-top: 14px; max-width: 46ch; }
.band-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 26px; }
.band-stat b { font-family: var(--f-disp); font-weight: 800; font-size: 30px; color: var(--jaune); display: block; line-height: 1; }
.band-stat span { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #B7C3D1; }

.about-media { border: 2px solid var(--ink); box-shadow: var(--shadow-hard); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 40px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Détail formation ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 44px; align-items: start; }
.detail-body h2 { font-size: 30px; margin: 38px 0 14px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 14px; color: var(--ink-2); }
.prog-list { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 8px; border: 2px solid var(--ink); }
.prog-list li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--blanc); }
.prog-list li:last-child { border-bottom: 0; }
.prog-list li::before { content: counter(prog, decimal-leading-zero); counter-increment: prog; font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--bleu); flex-shrink: 0; }
.prog-list { counter-reset: prog; }
.buy-card { position: sticky; top: 92px; background: var(--blanc); border: 2px solid var(--ink); box-shadow: var(--shadow-hard); padding: 26px; }
.buy-price { font-family: var(--f-disp); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-price small { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); display: block; margin-top: 8px; text-transform: uppercase; letter-spacing: .04em; }
.buy-list { list-style: none; padding: 20px 0; margin: 18px 0; border-block: 2px dashed var(--line); display: grid; gap: 11px; }
.buy-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.buy-list li svg { width: 18px; height: 18px; color: var(--bleu); flex-shrink: 0; margin-top: 3px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); margin-top: 14px; text-transform: uppercase; letter-spacing: .03em; }
.secure-note svg { width: 15px; height: 15px; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); border: 2px solid var(--ink); background: var(--blanc); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--bleu); outline-offset: 1px; }
.field small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.req { color: var(--danger); }
.field-note { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: 18px; }

/* ---------- Page hero / prose ---------- */
.page-hero { background: var(--beton-2); border-bottom: 2px solid var(--ink); padding-block: 56px; }
.page-hero h1 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(34px,5vw,64px); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 34px 0 12px; }
.prose h3 { font-family: var(--f-disp); font-size: 19px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--bleu); box-shadow: inset 0 -2px 0 var(--jaune); }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; margin-bottom: 22px; font-size: 14.5px; border: 2px solid var(--ink); border-left-width: 6px; background: var(--blanc); }
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash-info { border-left-color: var(--bleu); }

/* ---------- Footer ---------- */
.site-footer { background: var(--nuit); color: #A9B6C4; border-top: 3px solid var(--jaune); padding-block: 54px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-mark { border-color: #fff; }
.site-footer p { font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--f-disp); font-weight: 700; font-size: 16px; text-transform: uppercase; margin-bottom: 14px; letter-spacing: .03em; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: #A9B6C4; }
.footer-col a:hover { color: var(--jaune-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--f-mono); font-size: 12px; color: #8593A2; letter-spacing: .02em; }

/* ---------- Résultats (success/404) ---------- */
.result { max-width: 600px; margin-inline: auto; text-align: center; padding-block: 84px; }
.result-ic { width: 78px; height: 78px; border: 2px solid var(--ink); display: grid; place-items: center; margin: 0 auto 24px; }
.result-ic svg { width: 40px; height: 40px; }
.result-ic.ok { background: var(--jaune); }
.result-ic.no { background: var(--blanc); color: var(--danger); }

/* ---------- Accessibilité ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bleu); color: #fff; border: 2px solid var(--ink); padding: 10px 16px; font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; transition: top .18s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-grid, .detail-grid { grid-template-columns: 1fr; gap: 44px; }
    .buy-card { position: static; }
    .grid-cards, .steps, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stripe-row { grid-template-columns: repeat(2, 1fr); }
    .stripe-item:nth-child(2) { border-right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 620px) {
    .section { padding-block: 56px; }
    .nav-links { display: none; }
    .nav-cta .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--beton); border-bottom: 2px solid var(--ink); padding: 10px 28px 16px; }
    .nav-links.open a { min-height: 44px; display: flex; align-items: center; }
    .grid-cards, .steps, .grid-3, .stripe-row { grid-template-columns: 1fr; }
    .stripe-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
    .cta-band { padding: 34px 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cote-h, .cote-v { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .btn:hover, .f-card:hover { transform: none !important; }
}
