/* doc-project | public/assets/css/base.css | définit le système visuel commun, accessible et responsive du projet */
:root {
    --ink: #17352f;
    --ink-soft: #31564f;
    --paper: #fbfaf6;
    --paper-warm: #f5ecdf;
    --white: #ffffff;
    --accent: #b77b4b;
    --accent-dark: #8a5a35;
    --accent-light: #e8c89f;
    --sage: #dfe9df;
    --sage-dark: #4f786d;
    --teal: #6ba9a1;
    --line: rgba(23, 53, 47, .14);
    --muted: #6a7773;
    --danger: #a33f3f;
    --success: #2f7358;
    --shadow-sm: 0 10px 28px rgba(23, 53, 47, .08);
    --shadow-lg: 0 26px 70px rgba(23, 53, 47, .14);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --shell: min(1180px, calc(100% - 40px));
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font-sans); line-height: 1.58; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1, h2 { font-family: var(--font-serif); font-weight: 500; }
h1 { font-size: clamp(2.7rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); }
h3 { font-size: 1.25rem; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; transform: translateY(-150%); padding: 10px 16px; border-radius: 9px; background: var(--ink); color: var(--white); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #e0a75f; outline-offset: 3px; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--accent-dark); font-size: .77rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: var(--white); box-shadow: 0 12px 28px rgba(23, 53, 47, .2); }
.button--primary:hover { background: #244a42; box-shadow: 0 16px 34px rgba(23, 53, 47, .24); }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, .72); color: var(--ink); }
.button--ghost:hover { border-color: var(--ink); background: var(--white); }
.button--small { min-height: 42px; padding: 8px 16px; font-size: .9rem; }
.button[disabled] { opacity: .45; pointer-events: none; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(23, 53, 47, .08); background: rgba(251, 250, 246, .88); backdrop-filter: blur(18px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 28px; }
.brand { display: inline-flex; width: min(238px, 55vw); }
.site-nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: .94rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent-dark); }
.site-footer { margin-top: 100px; padding: 55px 0; border-top: 1px solid var(--line); background: #f2eee6; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.site-footer p { max-width: 520px; margin-bottom: 0; color: var(--muted); }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 760; font-size: .92rem; }
.field small { color: var(--muted); }
.field input, .field select, .field textarea, .search-field input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(107, 169, 161, .16); outline: none; }
.form-grid { display: grid; gap: 18px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; }
.alert--error { color: #7d2f2f; background: #fff1ef; border-color: #e9b7b1; }
.alert--success { color: #205e45; background: #edf8f2; border-color: #a8d6bf; }
.status { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px; background: var(--sage); color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.link-button { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.reveal { animation: reveal .7s both cubic-bezier(.2, .7, .2, 1); }
.reveal--delay { animation-delay: .12s; }
.reveal--delay-2 { animation-delay: .24s; }
.error-page { display: grid; place-items: start; min-height: 60vh; padding-block: 100px; max-width: 760px; }
.error-page__code { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 24px; border-radius: 50%; background: var(--paper-warm); color: var(--accent-dark); font-family: var(--font-serif); font-size: 2rem; }
.error-page h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 8vw, 5rem); }
.error-page p { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.noscript { margin: 20px auto; width: var(--shell); padding: 18px; border-radius: 12px; background: #fff1ef; color: var(--danger); }
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
    :root { --shell: min(100% - 26px, 1180px); }
    .site-header__inner { min-height: 74px; }
    .site-nav a:first-child { display: none; }
    .site-nav { gap: 14px; font-size: .84rem; }
    .site-footer__grid, .form-grid--two { grid-template-columns: 1fr; gap: 24px; }
    .site-footer { margin-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}