/* ══════════════════════════════════════════════════════════════
   AVADA-CONSULT — pages internes
   Reprend a l'identique la nav, la typographie et le pied de page
   de index.html : meme fond clair, meme logo, memes reperes.
   ══════════════════════════════════════════════════════════════ */

:root {
    --gold: #C9890A;
    --gold-light: #E8A000;
    --gold-bg: rgba(201,137,10,0.08);
    --gold-border: rgba(201,137,10,0.22);
    --dark: #111111;
    --dark-2: #1C1C1C;
    --bg: #F7F6F3;
    --surface: #FFFFFF;
    --surface-2: #F0EFEC;
    --border: rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.13);
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --radius: 3px;
    --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Geist', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── NAV (identique a index.html) ─── */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 64px;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(247,246,243,0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { width: 34px; height: 34px; object-fit: cover; border-radius: 2px; }
.nav-wordmark {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}
.nav-wordmark span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--dark) !important;
    color: white !important;
    padding: 9px 20px !important;
    border-radius: var(--radius);
    transition: background 0.2s !important, transform 0.15s !important;
}
.nav-cta:hover { background: var(--dark-2) !important; transform: translateY(-1px); }

/* ─── EN-TETE DE PAGE ─── */
.page-head {
    padding: 152px 56px 64px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.page-head .inner { max-width: 1180px; margin: 0 auto; }

.crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.crumb::before { content: ''; display: block; width: 22px; height: 1px; background: var(--gold); }
.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { color: var(--gold-light); }

.page-head h1 {
    font-family: var(--serif);
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.028em;
    color: var(--text-primary);
    max-width: 15ch;
    margin-bottom: 26px;
}
.page-head h1 em { font-style: italic; color: var(--gold); }

.lede {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 62ch;
}

/* ─── CORPS ─── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 72px 56px 40px; }

section { margin-bottom: 68px; }

h2 {
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    max-width: 640px;
    margin-bottom: 24px;
}
h2 em { font-style: italic; color: var(--gold); }

h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; margin: 32px 0 8px; }
h4 { font-size: 14px; font-weight: 600; margin: 22px 0 6px; }

p { margin-bottom: 16px; color: var(--text-secondary); max-width: 74ch; }
strong { color: var(--text-primary); font-weight: 600; }
em { font-style: italic; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,137,10,0.28); }
a:hover { border-bottom-color: var(--gold); }

ul, ol { margin: 0 0 20px 18px; color: var(--text-secondary); max-width: 74ch; }
li { margin-bottom: 7px; }
li strong { color: var(--text-primary); }

/* ─── COMPOSANTS ─── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
    margin: 26px 0 32px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.steps { counter-reset: s; margin: 28px 0 32px; }
.step {
    position: relative;
    padding-left: 52px;
    padding-bottom: 28px;
    border-left: 1px solid var(--border-strong);
    margin-left: 16px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
    counter-increment: s;
    content: counter(s);
    position: absolute;
    left: -16px;
    top: -2px;
    width: 32px;
    height: 32px;
    background: var(--dark);
    color: var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
}
.step h3 { margin: 0 0 6px; }
.step p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 22px 0 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: none; }
thead th {
    background: var(--surface-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-primary);
}
tbody th { font-weight: 600; color: var(--text-primary); width: 34%; }
td { color: var(--text-secondary); }

.note {
    background: var(--gold-bg);
    border-left: 2px solid var(--gold);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: 860px;
}
.note p:last-child { margin-bottom: 0; }
.note .label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.pull {
    font-family: var(--serif);
    font-size: clamp(21px, 2.4vw, 29px);
    line-height: 1.32;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    border-left: 2px solid var(--gold);
    padding: 4px 0 4px 26px;
    margin: 38px 0;
    max-width: 30ch;
}

.faq { border-top: 1px solid var(--border); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details > *:not(summary) { margin-top: 14px; }
.faq details p:last-child { margin-bottom: 0; }

.cta-band {
    background: var(--dark);
    color: white;
    border-radius: var(--radius);
    padding: 56px 44px;
    margin: 0 0 8px;
    text-align: center;
}
.cta-band h2 { color: white; margin: 0 auto 12px; max-width: none; }
.cta-band p { color: rgba(255,255,255,0.66); max-width: 56ch; margin: 0 auto 30px; }
.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 13px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--gold-light); border: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-border); }
.btn.ghost:hover { background: rgba(201,137,10,0.12); border: 1px solid var(--gold); }
.btn + .btn { margin-left: 10px; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); gap: 14px; margin-top: 24px; }
.related a {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s, transform 0.15s;
}
.related a:hover { border-color: var(--gold-border); transform: translateY(-1px); }
.related a small { display: block; color: var(--text-muted); font-weight: 400; margin-top: 4px; font-size: 12.5px; }

/* ─── PAGES LEGALES ─── */
.updated {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 44px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.wrap > h2:first-of-type { margin-top: 0; }

/* ─── ARTICLES ─── */
.meta { color: var(--text-muted); font-size: 12px; letter-spacing: 0.04em; margin-bottom: 0; }
article.prose h2 { margin-top: 56px; }
article.prose h3 { margin-top: 34px; }
article.prose > p:first-of-type { font-size: 17px; color: var(--text-primary); }
.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 34px 0 44px;
    max-width: 620px;
}
.toc strong {
    display: block;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}
.toc ol { margin: 0 0 0 18px; font-size: 14px; }
.toc li { margin-bottom: 5px; }

.post-list { list-style: none; margin: 0; max-width: 820px; }
.post-list li { border-bottom: 1px solid var(--border); padding: 30px 0; margin: 0; }
.post-list li:first-child { padding-top: 0; }
.post-list .tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.post-list h3 { margin: 0 0 10px; font-size: 23px; font-weight: 400; font-family: var(--serif); letter-spacing: -0.02em; }
.post-list h3 a { color: var(--text-primary); border-bottom: none; }
.post-list h3 a:hover { color: var(--gold); }
.post-list p { margin-bottom: 8px; }
.soon { color: var(--text-muted); }

/* ─── PIED DE PAGE (identique a index.html) ─── */
footer {
    background: var(--dark);
    padding: 32px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-wordmark { font-family: var(--serif); font-size: 17px; letter-spacing: 0.08em; color: white; }
.footer-wordmark span { color: var(--gold-light); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .page-head { padding: 116px 20px 44px; }
    .page-head h1 { max-width: none; }
    .wrap { padding: 48px 20px 32px; }
    .cta-band { padding: 40px 24px; }
    .btn + .btn { margin-left: 0; margin-top: 12px; }
    table { display: block; overflow-x: auto; }
    tbody th { width: auto; }
    footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}
