/*
 * Feuille de style des guides (/guides/). Reprend la palette et les
 * typographies du theme Woodmart : titres en Lexend Deca #242424,
 * texte courant en Open Sans #767676, accent bleu de marque #1C61E7.
 * Chargee uniquement sur les pages sous /guides/, jamais site-wide.
 */

.guide-content {
	max-width: 100%;
}

/* Largeur de lecture confortable : ~70 caracteres sur le texte courant. */
.guide-content > p,
.guide-content > ul,
.guide-content > ol,
.guide-content h2,
.guide-content h3 {
	max-width: 70ch;
}

.guide-content h2 {
	font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
	font-weight: 500;
	color: #242424;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
}

.guide-content h1 {
	font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
	font-weight: 500;
	color: #242424;
}

.guide-content p,
.guide-content li {
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	color: #767676;
	line-height: 1.7;
}

/* Code en ligne : distinct du texte courant, chasse fixe. */
.guide-content code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.9em;
	background: #F1F3F6;
	color: #1C1F26;
	padding: 0.15em 0.45em;
	border-radius: 4px;
	white-space: nowrap;
}

/* Blocs de commande : fond sombre, chasse fixe, bordure gauche accent,
 * bouton Copier positionne en haut a droite. */
.guide-content .guide-cmd-wrap {
	position: relative;
	margin: 1.25em 0 1.75em;
	max-width: 70ch;
}

.guide-content pre {
	background: #1E2129;
	border-left: 4px solid #1C61E7;
	color: #E8E9ED;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.92em;
	line-height: 1.6;
	padding: 1.1em 3.5em 1.1em 1.25em;
	border-radius: 6px;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
	margin: 0;
}

.guide-content pre code {
	background: none;
	color: inherit;
	padding: 0;
	white-space: inherit;
}

.guide-cmd-wrap button.guide-cmd-copy {
	position: absolute;
	top: 0.6em;
	right: 0.6em;
	background: #2C3038;
	color: #C7C9D1;
	border: 1px solid #3A3E48;
	border-radius: 4px;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.75em;
	padding: 0.35em 0.7em;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.guide-cmd-wrap button.guide-cmd-copy:hover {
	background: #3A3E48;
	color: #fff;
}

.guide-cmd-wrap button.guide-cmd-copy.is-copied {
	background: #1C61E7;
	border-color: #1C61E7;
	color: #fff;
}

/* Tableaux : bordures fines, en-tetes en gras, alternance, scroll mobile. */
.guide-content .guide-table-wrap {
	overflow-x: auto;
	margin: 1.5em 0;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.guide-content table {
	border-collapse: collapse;
	width: 100%;
	min-width: 480px;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.95em;
}

.guide-content table th,
.guide-content table td {
	border: 1px solid #E3E5EA;
	padding: 0.65em 1em;
	text-align: left;
	color: #767676;
}

.guide-content table th {
	font-weight: 700;
	color: #242424;
	background: #F7F8FA;
}

.guide-content table tbody tr:nth-child(even) td {
	background: #FAFBFC;
}

/* Listes numerotees d'etapes : numeros en evidence, espacement genereux. */
.guide-content ol {
	counter-reset: guide-step;
	list-style: none;
	padding-left: 0;
	margin: 1.5em 0;
}

.guide-content ol > li {
	counter-increment: guide-step;
	position: relative;
	padding-left: 2.75em;
	margin-bottom: 1.4em;
}

.guide-content ol > li::before {
	content: counter(guide-step);
	position: absolute;
	left: 0;
	top: -0.05em;
	width: 1.9em;
	height: 1.9em;
	border-radius: 50%;
	background: #1C61E7;
	color: #fff;
	font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 0.85em;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Encadres d'avertissement pour les notes importantes. */
.guide-content .guide-warning {
	max-width: 70ch;
	background: #FEF6E7;
	border-left: 4px solid #E9A23B;
	border-radius: 4px;
	padding: 0.9em 1.2em;
	margin: 1.5em 0;
	color: #6B4A17;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.95em;
}

.guide-content .guide-warning strong {
	color: #6B4A17;
}

/* Codes d'erreur : scannables visuellement dans le texte. */
.guide-content .guide-error-code {
	display: inline-block;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-weight: 700;
	background: #FDECEC;
	color: #B3261E;
	padding: 0.15em 0.5em;
	border-radius: 4px;
	font-size: 0.92em;
}

/* Cartes de comparaison (2 options cote a cote) : alternative visuelle au
 * tableau pour les comparatifs edition/version. Reutilisable sur les futurs
 * guides comparatifs. */
.guide-content .guide-compare-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	max-width: 70ch;
	margin: 1.5em 0;
}

.guide-content .guide-compare-card {
	background: #FAFBFC;
	border: 1px solid #E3E5EA;
	border-radius: 10px;
	padding: 1.25em;
}

.guide-content .guide-compare-card.is-featured {
	border: 2px solid #1C61E7;
}

.guide-content .guide-compare-badge {
	display: inline-block;
	background: #E6F1FB;
	color: #0C447C;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.75em;
	font-weight: 700;
	padding: 0.3em 0.8em;
	border-radius: 4px;
	margin-bottom: 0.75em;
}

.guide-content .guide-compare-title {
	font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
	font-weight: 500;
	color: #242424;
	font-size: 1.05em;
	margin: 0 0 0.9em;
}

.guide-content .guide-compare-stat {
	background: #F1F3F6;
	border-radius: 6px;
	padding: 0.75em;
	text-align: center;
	margin-bottom: 0.9em;
}

.guide-content .guide-compare-stat-label {
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.75em;
	color: #767676;
	margin: 0 0 0.2em;
}

.guide-content .guide-compare-stat-value {
	font-family: "Lexend Deca", Arial, Helvetica, sans-serif;
	font-weight: 500;
	font-size: 1.4em;
	color: #242424;
}

.guide-content .guide-compare-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.9em;
}

.guide-content .guide-compare-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5em 0;
	border-bottom: 1px solid #ECEEF1;
	color: #767676;
	margin: 0;
	max-width: none;
}

.guide-content .guide-compare-list li:last-child {
	border-bottom: none;
}

.guide-content .guide-compare-yes,
.guide-content .guide-compare-no {
	font-weight: 700;
	font-size: 1.05em;
}

.guide-content .guide-compare-yes {
	color: #1C9E75;
}

.guide-content .guide-compare-no {
	color: #D85A30;
}

.guide-content .guide-compare-footer {
	border-top: 1px solid #E3E5EA;
	margin-top: 0.9em;
	padding-top: 0.9em;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 0.85em;
	color: #767676;
}

@media (max-width: 600px) {
	.guide-content pre {
		padding: 1em 1em 1em 1em;
		font-size: 0.85em;
	}
	.guide-cmd-wrap button.guide-cmd-copy {
		position: static;
		display: block;
		margin: 0.6em 0 0;
		width: fit-content;
	}
}
