/* ============================================================
   Twin Peak Lab — feuille de style
   Thème : Space Grotesk + IBM Plex Mono, palette ink/accent/paper.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* Familles */
    --font-sans: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Couleurs */
    --ink:        #16191D;   /* texte principal / fonds sombres        */
    --accent:     #0FB5AC;   /* « Lab », liens, CTA, jumeau filaire     */
    --paper:      #FFFFFF;
    --paper-warm: #F7F6F3;
    --muted:      #5D6064;   /* texte secondaire                       */
    --line:       #ECECEC;   /* filets, séparateurs                    */

    /* Alias internes (compat) */
    --primary:      var(--accent);
    --accent-dark:  #0c9a92;
    --white:        #ffffff;

    --radius:    12px;
    --radius-sm: 8px;
    --maxw:      1120px;
}

/* ----- Reset léger --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
    line-height: 1.6;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p  { margin: 0 0 1rem; }
em { font-style: normal; color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----- Données / valeurs en mono ------------------------- */
.data, .metric, code { font-family: var(--font-mono); letter-spacing: .02em; }

/* ----- Boutons ------------------------------------------- */
.btn {
    display: inline-block;
    padding: .8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ============================================================
   En-tête / navigation
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 30px; width: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.tpl-lab { color: var(--accent); }
/* Wordmark « Twin Peak Lab » inline dans la prose : Twin Peak encre gras + Lab accent gras */
.tpl { font-weight: 700; color: var(--ink); }
.tpl .tpl-lab { color: var(--accent); font-weight: 700; }
.brand-sub { font-family: var(--font-mono); font-weight: 400; font-size: .66rem; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active { color: var(--accent); }
.site-nav .btn { padding: .55rem 1.2rem; }
.site-nav .btn-primary { color: #fff; }
.site-nav .btn-primary:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-weight: 500; font-size: .8rem; }
.lang-switch a, .lang-switch span { padding: 4px 7px; border-radius: 6px; line-height: 1; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--accent); text-decoration: none; }
.lang-switch [aria-current="page"] { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 0; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 92px 0; }
.section-alt { background: var(--paper-warm); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Sur-titre / label « rapport de labo » — mono, espacé */
.eyebrow, .label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: .26em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1rem;
}

/* ============================================================
   Hero — planche claire (paper), texte encre
   ============================================================ */
.hero { background: var(--paper-warm); color: var(--ink); padding: 100px 0; border-bottom: 1px solid var(--line); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; margin: 1rem 0 2rem; }
.hero .hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-logo { width: 100%; max-width: 260px; height: auto; }

/* ============================================================
   Cartes / grilles — à plat
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color .18s ease;
}
.card:hover { border-color: #d8d8d3; }
.card .icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-warm); color: var(--accent); margin-bottom: 18px;
}
.section-alt .card .icon { background: #eeeeea; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }

.audience-tag {
    display: inline-block; font-family: var(--font-mono);
    font-size: .68rem; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent);
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}

/* ============================================================
   Bloc "split" texte + visuel
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
    background: var(--paper-warm); border-radius: var(--radius);
    min-height: 300px; display: flex; align-items: center; justify-content: center;
    color: var(--muted); border: 1px dashed #d9d9d2; text-align: center; padding: 20px;
}

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .7rem; color: var(--ink); }
.checklist li::before {
    content: ""; position: absolute; left: 3px; top: .4em;
    width: 13px; height: 7px; border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ============================================================
   Bloc certification / bio
   ============================================================ */
.credential {
    display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
    background: var(--paper-warm); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 28px;
}
.credential a { display: inline-flex; flex: none; line-height: 0; }
.credential a:hover { opacity: .82; }
.credential img { width: 92px; height: 92px; flex: none; }
.credential .cred-txt { flex: 1; min-width: 220px; }
.credential .cred-txt strong { display: block; font-size: 1.08rem; color: var(--ink); }
.credential .cred-txt span { color: var(--muted); }

/* ============================================================
   Encart d'information
   ============================================================ */
.note-box {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--paper-warm); border: 1px solid var(--line); color: var(--ink);
    border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 22px; font-size: .95rem;
}
.note-box svg { width: 22px; height: 22px; flex: none; stroke: var(--accent); }

/* ============================================================
   Appel à l'action — bandeau encre
   ============================================================ */
.cta {
    background: var(--ink); color: #fff;
    border-radius: var(--radius); padding: 60px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #b4bbc0; max-width: 540px; margin: 0 auto 1.8rem; }
.cta .btn-primary { background: var(--accent); color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent-dark); color: var(--ink); }

/* ============================================================
   Formulaires
   ============================================================ */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-card h2 { font-size: 1.35rem; }
.form-card .lead { color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; font-family: var(--font-sans);
    color: var(--ink); background: var(--paper);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,181,172,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok  { color: #0c8f57; }
.form-status.err { color: #c0392b; }

/* ============================================================
   Pied de page — encre
   ============================================================ */
.site-footer { background: var(--ink); color: #9aa0a6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 16px; font-weight: 600; }
.site-footer a { color: #9aa0a6; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-sub { color: #7f868c; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .9rem; color: #71777d;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .hero .hero-inner { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .hero-logo { max-width: 200px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .split, .form-wrap { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav {
        position: absolute; top: 74px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px; display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { text-align: center; margin-top: 12px; }
    .grid-3, .grid-2, .footer-grid, .field-row { grid-template-columns: 1fr; }
    .cta { padding: 40px 24px; }
}
