/**
 * CRÉA'LIEN LAB — Adaptations WordPress
 *
 * Ce fichier complète design.css (la feuille compilée du design validé)
 * pour les spécificités WordPress : barre d'administration, contenus
 * produits avec l'éditeur Gutenberg, formulaires, pagination.
 */

/* ------------------------------------------------------------------ */
/* Correctif de chemin : le motif graphique vit dans le thème          */
/* (la feuille compilée référençait /brand/motif.png à la racine).     */
/* ------------------------------------------------------------------ */

.motif-bg {
	background-image: url(../brand/motif.png);
}

/* ------------------------------------------------------------------ */
/* Barre d'administration WordPress                                    */
/* ------------------------------------------------------------------ */

body.admin-bar .site-header {
	top: 32px;
}
body.admin-bar #menu-mobile {
	top: calc(72px + 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
	body.admin-bar #menu-mobile {
		top: calc(72px + 46px);
	}
}

/* ------------------------------------------------------------------ */
/* Contenus Gutenberg (articles, pages) — style « prose » de la marque */
/* ------------------------------------------------------------------ */

.prose-crea {
	color: rgba(32, 32, 32, 0.85);
	line-height: 1.75;
	font-size: 1.05rem;
}
.prose-crea > * + * {
	margin-top: 1.25rem;
}
.prose-crea h2,
.prose-crea h3,
.prose-crea h4 {
	color: #0a0f9e;
	font-weight: 800;
	line-height: 1.2;
	margin-top: 2.25rem;
}
.prose-crea h2 {
	font-size: 1.6rem;
}
.prose-crea h3 {
	font-size: 1.25rem;
}
.prose-crea h4 {
	font-size: 1.1rem;
}
.prose-crea a {
	color: #0a0f9e;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #ff7a00;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.prose-crea a:hover {
	color: #ff7a00;
}
.prose-crea ul,
.prose-crea ol {
	padding-left: 1.5rem;
	display: grid;
	gap: 0.5rem;
}
.prose-crea ul {
	list-style: disc;
}
.prose-crea ol {
	list-style: decimal;
}
.prose-crea strong {
	color: #202020;
}
.prose-crea blockquote {
	border-left: 4px solid #ff7a00;
	padding-left: 1.25rem;
	font-style: italic;
	color: rgba(32, 32, 32, 0.7);
}
.prose-crea img {
	border-radius: 1.5rem;
	max-width: 100%;
	height: auto;
}
.prose-crea figure {
	margin: 1.5rem 0;
}
.prose-crea figcaption {
	font-size: 0.85rem;
	color: rgba(32, 32, 32, 0.55);
	margin-top: 0.5rem;
	text-align: center;
}
.prose-crea hr {
	border: 0;
	border-top: 2px solid rgba(10, 15, 158, 0.1);
	margin: 2rem 0;
}

/* Alignements Gutenberg */
.alignwide {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
}
.alignfull {
	width: 100%;
}
.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
}
.alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
}
.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* Boutons Gutenberg aux couleurs de la marque */
.wp-block-button__link,
.wp-element-button {
	border-radius: 999px;
	font-weight: 700;
	padding: 0.75rem 1.75rem;
	transition: background-color 0.2s, color 0.2s;
}
.wp-block-button__link:not(.has-background) {
	background-color: #0a0f9e;
	color: #fff;
}
.wp-block-button__link:not(.has-background):hover {
	background-color: #ff7a00;
}

/* Galeries et médias */
.wp-block-gallery .blocks-gallery-image img,
.wp-block-gallery .blocks-gallery-item img,
.wp-block-image img {
	border-radius: 1.5rem;
}
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.wp-block-table th,
.wp-block-table td {
	border: 1px solid rgba(10, 15, 158, 0.12);
	padding: 0.6rem 0.9rem;
	text-align: left;
}
.wp-block-table th {
	background: rgba(215, 224, 255, 0.5);
	color: #0a0f9e;
}

/* ------------------------------------------------------------------ */
/* Formulaires (retours de l'extension fonctionnalités)                */
/* ------------------------------------------------------------------ */

.crealien-alerte-erreur {
	border-radius: 1rem;
	background: rgba(220, 38, 38, 0.08);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #b91c1c;
}

/* ------------------------------------------------------------------ */
/* Pagination du journal                                               */
/* ------------------------------------------------------------------ */

.crealien-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 999px;
	border: 2px solid rgba(10, 15, 158, 0.2);
	background: #fff;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #0a0f9e;
	transition: background-color 0.2s, color 0.2s;
}
.crealien-pagination .page-numbers:hover {
	border-color: #0a0f9e;
}
.crealien-pagination .page-numbers.current {
	background: #0a0f9e;
	border-color: #0a0f9e;
	color: #fff;
}
.crealien-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ------------------------------------------------------------------ */
/* Accessibilité                                                       */
/* ------------------------------------------------------------------ */

:focus-visible {
	outline: 3px solid #ff7a00;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
