/* VinzFarm : feuille de style unique, sans dépendance externe. */

:root {
    --bg: #faf6ee;
    --surface: #ffffff;
    --text: #23291f;
    --muted: #5d6656;
    --green: #2f5d3a;
    --green-dark: #24482d;
    --wheat: #c99a3e;
    --wheat-soft: #f3e7cc;
    --line: #e4dccb;
    --danger: #b42318;
    --radius: 14px;
    --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161a14;
        --surface: #1f251c;
        --text: #ece8de;
        --muted: #aab3a1;
        --green: #7fbf8c;
        --green-dark: #a3d6ad;
        --wheat: #e0b85f;
        --wheat-soft: #2c2a1e;
        --line: #343c2f;
        --danger: #ff8a7a;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: 4px 0; }
.main-nav a[aria-current="page"] { color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--wheat); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 600; padding: 4px 12px; }
.lang a[aria-current="true"] { background: var(--green); color: var(--bg); }

/* Contenu */
main { flex: 1; padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; margin: 36px 0 8px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }
p, li { max-width: 72ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
.updated { color: var(--muted); font-size: .95rem; }

.hero { padding: 16px 0 8px; }
.hero .eyebrow { color: var(--wheat); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 8px; }

.callout {
    background: var(--wheat-soft);
    border-left: 4px solid var(--wheat);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 24px 0;
    font-weight: 600;
}

.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.steps li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green); color: var(--bg);
    font-weight: 700; margin-bottom: 8px;
}
.steps strong { display: block; margin-bottom: 4px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 16px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-top: 0; }

.legal h2 { border-top: 1px solid var(--line); padding-top: 24px; }
.legal ul { padding-left: 1.2em; }

.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.contact-box .email { font-size: 1.3rem; font-weight: 700; word-break: break-all; }

.status { text-align: center; padding: 40px 0; }
.status .icon { font-size: 3rem; line-height: 1; }
.status.ok h1 { color: var(--green); }
.status.error h1, .text-danger { color: var(--danger); }

/* Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 24px 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.footer-row p { margin: 4px 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 600px) {
    body { font-size: 16px; }
    main { padding-top: 28px; }
    .main-nav { order: 3; flex-basis: 100%; }
    .lang { margin-left: auto; }
}
