/* ============================================================
   CBDCO Static pages — mentions, CGV, CGU, RGPD, FAQ, contact, etc.
   Hérite intégralement du fond + typo du site (var(--bg-0), var(--text),
   var(--font-body)) ; le hero utilise les classes .page-hero (cf. main.css)
   pour l'unification visuelle avec les hero de catégories.
   ============================================================ */

.cbdco-static {
	min-height: 60vh;
	/* pas de background custom : on suit body { background: var(--bg-0) } */
}

/* Titre seul (pas de hero) — typo identique au reste du site, marges respirées */
.cbdco-static__title-wrap {
	padding: 14px 24px 6px;
}
.cbdco-static__title {
	font-family: var(--font-body);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 600;
	color: var(--text);
	letter-spacing: -.01em;
	line-height: 1.2;
	margin: 0 0 6px;
}
.cbdco-static__lead {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text-dim);
	line-height: 1.6;
	max-width: 720px;
	margin: 0;
}
@media (max-width: 600px) {
	.cbdco-static__title-wrap { padding: 10px 16px 4px; }
}

/* LAYOUT : sommaire à gauche + contenu central — pleine largeur du site
   Marge top et bottom symétriques (24px en haut depuis title-wrap, idem en bas
   pour respirer avant le footer). */
.cbdco-static__layout {
	width: 100%;
	max-width: var(--container);
	margin: 14px auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 48px;
	align-items: start;
}

/* === Sommaire (TOC) ============================================== */
.cbdco-static__toc { position: sticky; top: 24px; }
.cbdco-static__toc-toggle {
	display: none;
	width: 100%; padding: 11px 14px;
	background: var(--bg-1);
	color: var(--gold);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 13.5px; font-weight: 600;
	cursor: pointer; text-align: left;
}
.cbdco-static__toc-nav {
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 6px;
	max-height: calc(100vh - 60px);
	overflow-y: auto;
}
.cbdco-static__toc-nav ul { list-style: none; padding: 0; margin: 0; }
.cbdco-static__toc-nav li { margin: 0; }
.cbdco-static__toc-nav a {
	display: block; padding: 6px 12px;
	color: var(--text-mute);
	text-decoration: none;
	font-size: 13px; line-height: 1.45;
	border-left: 2px solid transparent;
	transition: color .15s, background .15s, border-color .15s;
}
.cbdco-static__toc-nav a:hover {
	color: var(--gold);
	background: rgba(212,168,75,.06);
	border-left-color: rgba(212,168,75,.4);
}
.cbdco-static__toc-nav a.is-active {
	color: var(--gold); font-weight: 600;
	border-left-color: var(--gold);
	background: rgba(212,168,75,.1);
}
.cbdco-static__toc-nav .toc-h3 { padding-left: 26px; font-size: 12.5px; }

/* === Contenu — typo identique au reste du site ===================== */
.cbdco-static__content {
	min-width: 0;
	font-family: var(--font-body);
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text);
}
.cbdco-static__content h2 {
	font-family: var(--font-body);
	font-size: clamp(17px, 1.9vw, 21px);
	font-weight: 600;
	color: var(--text);
	margin: 36px 0 10px;
	letter-spacing: -.01em;
	scroll-margin-top: 24px;
}
.cbdco-static__content h2:first-child { margin-top: 0; }
.cbdco-static__content h3 {
	font-family: var(--font-body);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--text);
	margin: 22px 0 8px;
	scroll-margin-top: 24px;
}
.cbdco-static__content p { margin: 0 0 12px; }
.cbdco-static__content a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .15s;
}
.cbdco-static__content a:hover { color: var(--gold-soft); }
.cbdco-static__content ul,
.cbdco-static__content ol { padding-left: 22px; margin: 0 0 14px; }
.cbdco-static__content li { margin-bottom: 5px; }
.cbdco-static__content ul li::marker { color: var(--gold); }
.cbdco-static__content blockquote {
	border-left: 3px solid var(--gold);
	background: var(--bg-1);
	padding: 12px 16px;
	margin: 20px 0;
	color: var(--text);
	border-radius: 0 8px 8px 0;
	font-style: italic;
}
.cbdco-static__content code {
	background: var(--bg-1);
	padding: 2px 6px; border-radius: 4px;
	font-size: .92em; color: var(--gold);
	font-family: var(--font-mono, ui-monospace, monospace);
}
.cbdco-static__content table {
	width: 100%; border-collapse: collapse; margin: 20px 0;
	background: var(--bg-1); border: 1px solid var(--line);
	font-size: 14px;
}
.cbdco-static__content th,
.cbdco-static__content td {
	padding: 10px 14px; text-align: left;
	border-bottom: 1px solid var(--line);
}
.cbdco-static__content th {
	background: rgba(212,168,75,.08);
	color: var(--gold);
	font-weight: 600;
}
.cbdco-static__content hr {
	border: 0; border-top: 1px solid var(--line);
	margin: 32px 0;
}

/* Encadrés callout */
.cbdco-static__content .cbdco-callout {
	background: var(--bg-1);
	border-left: 3px solid var(--gold);
	padding: 12px 16px;
	margin: 20px 0;
	border-radius: 0 8px 8px 0;
}
.cbdco-static__content .cbdco-callout--warn   { border-left-color: #e0a04b; }
.cbdco-static__content .cbdco-callout--danger { border-left-color: #d23b3b; }

/* === FAQ : accordéons ============================================== */
.cbdco-faq__search { margin-bottom: 22px; }
.cbdco-faq__search input {
	width: 100%; padding: 11px 14px;
	background: var(--bg-1);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 14.5px;
}
.cbdco-faq__search input:focus { outline: none; border-color: var(--gold); }

.cbdco-faq__item {
	background: var(--bg-1);
	border: 1px solid var(--line);
	border-radius: 8px;
	margin-bottom: 8px;
	overflow: hidden;
	transition: border-color .15s;
}
.cbdco-faq__item.is-open   { border-color: rgba(212,168,75,.35); }
.cbdco-faq__item.is-hidden { display: none; }
.cbdco-faq__q {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	width: 100%; padding: 14px 18px;
	background: transparent; border: 0;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 14.5px; font-weight: 500; line-height: 1.4;
	text-align: left; cursor: pointer;
}
.cbdco-faq__q:hover { color: var(--gold); }
.cbdco-faq__q::after {
	content: '+'; font-size: 20px; color: var(--gold); flex-shrink: 0;
	transition: transform .2s; line-height: 1;
}
.cbdco-faq__item.is-open .cbdco-faq__q::after { transform: rotate(45deg); }
.cbdco-faq__a {
	max-height: 0; overflow: hidden;
	transition: max-height .3s ease-out;
	color: var(--text-dim);
	font-size: 14px; line-height: 1.7;
}
.cbdco-faq__item.is-open .cbdco-faq__a {
	max-height: 1000px; padding: 0 18px 16px;
}

/* === Contact : grid ================================================ */
.cbdco-contact-grid {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px;
	margin-top: 44px; padding-top: 32px;
	border-top: 1px solid var(--line);
}
.cbdco-contact-form h2,
.cbdco-contact-info h2 { margin-top: 0; }
.cbdco-contact-info ul { list-style: none; padding: 0; margin: 0; }
.cbdco-contact-info li {
	background: var(--bg-1);
	border: 1px solid var(--line);
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 8px;
	font-size: 13.5px; line-height: 1.6;
}
.cbdco-contact-info li strong {
	display: block;
	color: var(--gold);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 4px;
	font-weight: 700;
}

.cbdco-contact-fields { display: grid; gap: 12px; }
.cbdco-contact-fields label {
	font-size: 12.5px; color: var(--text-dim); display: block; margin-bottom: 5px;
	letter-spacing: .02em;
}
.cbdco-contact-fields input,
.cbdco-contact-fields textarea,
.cbdco-contact-fields select {
	width: 100%; padding: 11px 14px;
	background: var(--bg-1);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 14.5px;
}
.cbdco-contact-fields textarea { min-height: 130px; resize: vertical; }
.cbdco-contact-fields input:focus,
.cbdco-contact-fields textarea:focus,
.cbdco-contact-fields select:focus {
	outline: none; border-color: var(--gold);
}
.cbdco-contact-submit {
	background: var(--btn-bg);
	color: var(--btn-fg);
	padding: 11px 22px;
	border: 0; border-radius: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
	font-size: 14px;
	margin-top: 6px;
	align-self: flex-start;
	transition: transform .15s, box-shadow .15s, background .15s;
	text-transform: uppercase;
}
.cbdco-contact-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(212,168,75,.3);
	background: var(--btn-bg-hover);
}
.cbdco-contact-msg { margin-top: 12px; padding: 11px 14px; border-radius: 6px; font-size: 13.5px; }
.cbdco-contact-msg.is-success {
	background: rgba(74,222,128,.1);
	color: #4ade80;
	border: 1px solid rgba(74,222,128,.25);
}
.cbdco-contact-msg.is-error {
	background: rgba(239,68,68,.1);
	color: #f87171;
	border: 1px solid rgba(239,68,68,.25);
}

/* === Responsive ==================================================== */
@media (max-width: 900px) {
	.cbdco-static__layout {
		grid-template-columns: 1fr;
		gap: 18px;
		margin: 10px auto;
		padding: 0 16px;
	}
	.cbdco-static__toc { position: static; }
	.cbdco-static__toc-toggle { display: block; }
	.cbdco-static__toc-nav { display: none; }
	.cbdco-static__toc.is-open .cbdco-static__toc-nav { display: block; margin-top: 8px; }
	.cbdco-contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
	.cbdco-static__content { font-size: 14.5px; }
	.cbdco-static__content h2 { margin: 32px 0 12px; }
}
