/**
 * Thème Lucile : styles complémentaires à theme.json.
 * Uniquement ce que theme.json ne sait pas exprimer : styles de blocs,
 * pseudo-éléments, états de survol spécifiques.
 */

/* ==========================================================================
   Boutons (composant Figma « Button primary »)
   Le style par défaut (Blue) est défini dans theme.json.
   ========================================================================== */

.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.wp-block-button.is-style-white > .wp-block-button__link {
	background-color: var(--wp--preset--color--inverse);
	color: var(--wp--preset--color--dark);
}
.wp-block-button.is-style-white > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--brand-muted);
	color: var(--wp--preset--color--dark);
}

.wp-block-button.is-style-yellow > .wp-block-button__link {
	background-color: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--dark);
}
.wp-block-button.is-style-yellow > .wp-block-button__link:hover {
	filter: brightness(0.94);
	background-color: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--dark);
}

.wp-block-button.is-style-dark > .wp-block-button__link {
	background-color: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--inverse);
}
.wp-block-button.is-style-dark > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--deep);
}

.wp-block-button.is-style-deep > .wp-block-button__link {
	background-color: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--inverse);
}
.wp-block-button.is-style-deep > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--brand);
}

.wp-block-button.is-style-brand-muted > .wp-block-button__link {
	background-color: var(--wp--preset--color--brand-muted);
	color: var(--wp--preset--color--brand);
}
.wp-block-button.is-style-brand-muted > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--inverse);
}

.wp-block-button.is-style-stroke > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--dark);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--dark);
}
.wp-block-button.is-style-stroke > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--inverse);
}

.wp-block-button.is-style-stroke-inverse > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--inverse);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--inverse);
}
.wp-block-button.is-style-stroke-inverse > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--inverse);
	color: var(--wp--preset--color--dark);
}

.wp-block-button.is-style-glow > .wp-block-button__link {
	background-color: rgba(255, 255, 255, 0.3);
	color: var(--wp--preset--color--inverse);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.wp-block-button.is-style-glow > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--inverse-muted);
}

/* Lien fléché (composant Figma « Button secondary ») */
.wp-block-button.is-style-link > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 0 6px;
	border-radius: 0;
	background: none;
	color: inherit;
	border-bottom: 1.2px solid currentColor;
}
.wp-block-button.is-style-link > .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
}
.wp-block-button.is-style-link > .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--brand);
}

/* Petite taille (boutons du header : 13,5 px, padding 15/27) */
.wp-block-button.is-size-small > .wp-block-button__link {
	padding: 15px 27px 16px;
	font-size: 13.5px;
}

/* ==========================================================================
   Textes (styles Figma « Label » et « Display/Overline »)
   ========================================================================== */

.is-style-eyebrow {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.566;
	letter-spacing: 0.104em;
	text-transform: uppercase;
}

.is-style-eyebrow-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	margin: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.114em;
	text-indent: 0.114em; /* recentre le texte malgré l'espacement des lettres */
}

.is-style-overline {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.208em;
	text-transform: uppercase;
}

.is-style-meta {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	text-transform: uppercase;
}

/* ==========================================================================
   Listes et cartes
   ========================================================================== */

.wp-block-list.is-style-plain {
	list-style: none;
	padding-left: 0;
}
.wp-block-list.is-style-plain > li + li {
	margin-top: 11px;
}

.wp-block-group.is-style-card {
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--preset--color--inverse);
	padding: 24px 24px 56px;
}

/* ==========================================================================
   Structure : header, contenu et footer collés (les sections gèrent leurs marges)
   ========================================================================== */

.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.lucile-flush > * + * {
	margin-block-start: 0;
}

/* ==========================================================================
   Header et footer
   ========================================================================== */

.lucile-logo img {
	display: block;
	height: auto;
	border-radius: 0;
}

/* Sur mobile, les boutons du header passent sous le logo et le menu. */
@media (max-width: 781px) {
	.wp-block-buttons.lucile-header__actions {
		display: none;
	}
}

/* Colonnes du footer : une seule ligne sur desktop, passent à la ligne sur petit écran. */
.lucile-footer__nav {
	flex: 1 1 560px;
}

.lucile-footer a:where(:not(.wp-element-button)) {
	text-decoration: none;
}
.lucile-footer a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--inverse);
	text-decoration: underline;
}

/* ==========================================================================
   Styles de blocs réutilisables
   ========================================================================== */

/* Tag (paragraphe) : étiquette en pilule, ex. « Dire », « Écouter » */
p.is-style-tag {
	display: inline-block;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

/* Citation (groupe) : guillemets du design system avant le contenu */
.wp-block-group.is-style-quote::before {
	content: "";
	flex: none;
	display: block;
	width: 48px;
	height: 34px;
	background-color: var(--lucile-quote-color, var(--wp--preset--color--brand));
	-webkit-mask: url("../images/icons/quote.svg") left top / contain no-repeat;
	mask: url("../images/icons/quote.svg") left top / contain no-repeat;
}
.wp-block-group.is-style-quote.has-highlight-background-color {
	--lucile-quote-color: var(--wp--preset--color--brand);
}
.wp-block-group.is-style-quote:not(.has-highlight-background-color) {
	--lucile-quote-color: var(--wp--preset--color--highlight);
}

/* Pastille ronde (groupe) : cercle centré, ex. « Écouter / Comprendre / Coopérer » */
.wp-block-group.is-style-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: 50%;
	text-align: center;
}

/* Surtitre numéroté dans une couleur : le cercle suit la couleur du texte */
.is-style-eyebrow-number + .is-style-eyebrow {
	margin: 0;
}

/* Bouton « Lire l'article » (bloc Lire la suite) avec flèche */
.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-weight: 700;
	text-decoration: none;
}
.wp-block-read-more::after {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
}

/* Catégorie d'article en pilule */
.wp-block-post-terms.is-style-pill a {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 12px;
	background-color: var(--wp--preset--color--brand-muted);
	color: var(--wp--preset--color--brand);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.104em;
	line-height: 1.6;
	text-transform: uppercase;
	text-decoration: none;
}

/* ==========================================================================
   Composants de la page d'accueil (classes CSS additionnelles)
   ========================================================================== */

/* Hero : accroche entourée de deux traits */
.lucile-hero-tagline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
}
.lucile-hero-tagline::before,
.lucile-hero-tagline::after {
	content: "";
	width: 12px;
	height: 1px;
	background-color: currentColor;
	opacity: 0.6;
}

/* Chiffres clés : trait vertical à gauche, symbole plus petit en couleur */
.lucile-stat {
	border-left: 1px solid var(--wp--preset--color--border-default);
	padding-left: 28px;
}
.lucile-stat mark {
	font-size: 0.46em;
	letter-spacing: 0;
	vertical-align: 0.15em;
}

/* Section « dialogue » : carte illustration + éléments superposés */
.lucile-visual {
	position: relative;
}
.lucile-visual__media img {
	border-radius: 28px;
	background-color: var(--wp--preset--color--inverse);
	box-shadow: var(--wp--preset--shadow--soft);
}
@media (min-width: 782px) {
	.lucile-visual .lucile-visual__badge {
		position: absolute;
		top: -24px;
		right: -24px;
		z-index: 1;
	}
	.lucile-visual .lucile-visual__quote {
		position: absolute;
		bottom: -60px;
		left: -50px;
		z-index: 1;
		max-width: 280px;
	}
}

.lucile-visual__badge {
	width: 135px;
}
.lucile-visual__quote::before {
	width: 16px;
	height: 12px;
}

/* Cartes médias (cover) arrondies */
.lucile-media-card {
	border-radius: 26px;
	overflow: hidden;
}

/* Lignes cliquables (parcours) : tout le bloc devient le lien */
.lucile-row-link {
	position: relative;
}
.lucile-row-link a {
	text-decoration: none;
}
.lucile-row-link a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.lucile-row-link::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	margin-left: auto;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
}

/* Emplacement de logo (75 px) */
.lucile-logo-box {
	display: grid;
	place-items: center;
	width: 75px;
	height: 75px;
	border-radius: 16px;
}

/* Carte qui remplit toute la hauteur de sa colonne */
.lucile-card-fill {
	height: 100%;
}
.lucile-row-link:hover .wp-block-heading,
.lucile-row-link:hover strong {
	color: var(--wp--preset--color--brand);
}

/* Pastille d'icône (54 px) */
.lucile-icon-circle {
	display: grid;
	place-items: center;
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--brand-muted);
}
.lucile-icon-circle img {
	width: 24px;
	height: 24px;
	border-radius: 0;
}

/* Flèche décorative en fin de ligne */
.lucile-arrow {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
	mask: url("../images/icons/arrow-up-right.svg") center / contain no-repeat;
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
