/* Assistance Contrôle : direction A « Cabinet de confiance » (version claire) */
:root {
	/* Palette de la proposition de refonte (assistance-controle-refonte/NOTE-DEVELOPPEUR.txt) */
	--navy: #151744;
	--ink: #10122f;
	--deep: #10122f;
	--ivory: #f7f4ed;
	--teal: #197a79;
	--aqua: #77d0c6;
	--cyan: #77d0c6;
	--gold: #c6a765;
	--gold-dark: #876c34;
	--paper: #faf8f3;
	--white: #fff;
	--line: #e4dfd5;
	--text: #23273c;
	--muted: #666b7c;
	--soft: #c9cbe8;
	--danger: #b42318;
	--success: #157f3b;
	--serif: 'Playfair Display', Georgia, serif;
	--sans: 'Inter', system-ui, -apple-system, sans-serif;
	--wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.7; font-size: 16px; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 2px; font-weight: 600; font-size: 15px; transition: .2s; cursor: pointer; border: 0; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d7b46e; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); }
.btn-line { border: 1px solid var(--navy); color: var(--navy); padding: 10px 18px; font-size: 14px; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Bandeau supérieur et en-tête */
.topbar { background: var(--deep); color: #dedee7; font-size: 11px; letter-spacing: 1.6px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-links { display: flex; gap: 22px; letter-spacing: .2px; font-size: 12px; }
.topbar-links a:hover { color: #fff; }
.topbar-pro { color: var(--gold); font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; width: auto; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--navy); }
.nav a.on { color: var(--teal); }
.nav .navcta { gap: 16px; padding: 12px 18px; }
.nav .navcta span { font-size: 16px; line-height: 1; }
.nav .nav-pro { display: none; }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; cursor: pointer; color: var(--navy); font-size: 22px; }

/* Étiquettes */
.eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.eyebrow.dark { color: var(--gold-dark); }
.eyebrow.dark::before { background: var(--gold-dark); }

/* Bandeau des pages intérieures */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -140px; top: -200px; width: 520px; height: 520px; border: 1px solid rgba(200, 162, 90, .22); border-radius: 50%; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.12; margin-top: 20px; max-width: 900px; }
.page-hero p { color: var(--soft); margin-top: 16px; max-width: 720px; }
.crumbs { font-size: 13px; color: var(--soft); margin-top: 22px; }
.crumbs a:hover { color: #fff; }

/* Sections */
section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.section-head h2 { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--navy); line-height: 1.12; margin-top: 14px; }

/* Appel à l'action */
.cta { background: var(--ink); color: #fff; text-align: center; }
.cta h2 { font-family: var(--serif); font-size: 44px; font-weight: 600; max-width: 820px; margin: 18px auto 22px; line-height: 1.15; }
.cta p { color: var(--soft); max-width: 640px; margin: 0 auto 38px; }
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); }

/* Pages de lecture */
.reading { padding: 80px 0 100px; }
.reading .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: start; }
.reading.single .wrap { grid-template-columns: minmax(0, 760px); justify-content: center; }
.prose { font-size: 17px; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 27px; }
.prose h4 { font-size: 22px; }
.prose h5, .prose h6 { font-size: 19px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--gold-dark); }
.prose a { color: var(--navy); border-bottom: 1px solid var(--gold); font-weight: 500; }
.prose a:hover { color: var(--gold-dark); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { display: block; margin: 1.5em 0; border: 1px solid var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.aside-box { background: var(--navy); color: #fff; padding: 34px 30px; position: sticky; top: 110px; }
.aside-box h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; margin: 14px 0 12px; }
.aside-box p { color: var(--soft); font-size: 15px; margin-bottom: 22px; }
.aside-list { margin-top: 26px; background: #fff; border: 1px solid var(--line); }
.aside-list a { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); line-height: 1.4; }
.aside-list a:last-child { border-bottom: 0; }
.aside-list a:hover, .aside-list a.on { background: var(--paper); color: var(--gold-dark); }
.aside-list b { font-family: var(--serif); color: var(--gold-dark); min-width: 18px; }


/* Navigation entre étapes */
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.step-nav a { border: 1px solid var(--line); background: #fff; padding: 22px 24px; display: block; transition: .2s; }
.step-nav a:hover { border-color: var(--gold); }
.step-nav small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.step-nav span { font-family: var(--serif); color: var(--navy); font-size: 18px; font-weight: 600; line-height: 1.3; }
.step-nav .next { text-align: right; grid-column: 2; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .25s; }
.post:hover { transform: translateY(-4px); border-color: var(--gold); }
.post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post .b { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post time { font-size: 13px; color: var(--muted); }
.post h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.3; margin: 8px 0 12px; }
.post p { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .go { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14px; color: var(--navy); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; }
.pager span { background: var(--navy); color: #fff; border-color: var(--navy); }
.article-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; margin-bottom: 40px; border: 1px solid var(--line); }

/* Formulaire */
.form-card { background: #fff; border: 1px solid var(--line); padding: 44px; }
.form-card h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-card .intro { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--navy); }
.field label i, .field legend i { color: var(--gold-dark); font-style: normal; }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid #d9d4c8; background: var(--paper); color: var(--text); border-radius: 0; transition: .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(18, 19, 90, .1); }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { font-size: 13px; color: var(--danger); }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); }
.pwd { position: relative; display: flex; }
.pwd input { flex: 1; min-width: 0; padding-right: 50px; }
.pwd-toggle { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.pwd-toggle:hover, .pwd-toggle[aria-pressed="true"] { color: var(--navy); }
.pwd-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 0; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid #d9d4c8; background: var(--paper); padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--navy); cursor: pointer; text-align: center; transition: .15s; }
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(18, 19, 90, .2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-notes { margin-top: 26px; font-size: 14px; color: var(--muted); }
.form-notes p + p { margin-top: 8px; }
.alert { padding: 18px 22px; margin-bottom: 26px; font-size: 15px; border: 1px solid; }
.alert.ok { background: #ecf8f0; border-color: #b7e2c5; color: var(--success); }
.alert.ko { background: #fdf0ef; border-color: #f3c3be; color: var(--danger); }

/* Pied de page */
.site-footer { background: var(--deep); color: #b8bfd4; font-size: 13px; line-height: 1.9; }
.site-footer .top { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 50px; padding: 56px 0 38px; }
.site-footer h4, .site-footer .foot-h { color: #fff; font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 4px 0 14px; }
.site-footer p + p { margin-top: 10px; }
.site-footer li { list-style: none; margin: 2px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: #fff; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.site-footer .logo img { height: 48px; background: #fff; padding: 4px; display: block; }
.site-footer .logo small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 3px; color: #b8bfd4; margin-top: 4px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 20px 0 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #999fb9; }

/* Mobile */
@media (max-width: 960px) {
	.wrap { padding: 0 18px; }
	.topbar { display: none; }
	.site-header .wrap { height: 72px; }
	.brand img { height: 42px; }
	.brand span { font-size: 19px; }
	.menu-toggle { display: grid; place-items: center; }
	.nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 20px; }
	.nav.open { display: flex; }
	.nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.nav a.on::after { display: none; }
	.nav .btn { margin-top: 16px; justify-content: center; }
	.nav .nav-pro { display: block; padding: 14px 0; text-align: center; color: var(--gold-dark); font-weight: 600; }
	.site-footer .top { grid-template-columns: 1fr; gap: 26px; }
	.page-hero h1 { font-size: 34px; }
	.section-head { flex-direction: column; align-items: start; }
	.section-head h2, .cta h2 { font-size: 32px; }
	section { padding: 70px 0; }
	.reading { padding: 50px 0 70px; }
	.reading .wrap { grid-template-columns: 1fr; gap: 40px; }
	.aside-box { position: static; }
	.prose { font-size: 16px; }
	.prose h2 { font-size: 28px; }
	.prose h3 { font-size: 23px; }
	.form-card { padding: 28px 20px; }
	.form-grid, .choices { grid-template-columns: 1fr; }
	.step-nav { grid-template-columns: 1fr; }
	.step-nav .next { grid-column: 1; }
}
