/*
 Theme Name: Sévillanes Castésiennes
 Description: Thème enfant GeneratePress du site des Sévillanes Castésiennes.
 Author: Sévillanes Castésiennes
 Template: generatepress
 Version: 2.2.8
 Text Domain: sevillanes-castesiennes
*/


/* ==================================================
   01 — DESIGN TOKENS
   Identité visuelle et valeurs globales
   ================================================== */

:root {

	/* Couleurs dynamiques injectées depuis GeneratePress par functions.php.
	   Les valeurs ci-dessous servent de repli (éditeur / absence de réglage). */
	--brand-primary: #AD3030;
	--brand-accent: #E6B84A;

	/* Couleurs */
	--color-text: #292524;
	--color-muted: #6F6A66;
	--color-background: #FFFFFF;
	--color-surface: #FAF7F2;
	--color-border: #E9E4DE;

	/* Largeurs */
	--container-wide: 1200px;
	--container-page: 1050px;
	--container-post: 850px;
	--container-content: var(--container-post); /* compatibilité anciens composants */

	/* Arrondis */
	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;

	/* Ombres */
	--shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 10px 35px rgba(0, 0, 0, 0.10);

	/* Transitions */
	--transition-fast: 0.2s ease;

	/* Espacements */
	--space-section: clamp(60px, 8vw, 100px);
}


/* ==================================================
   02 — BASE
   ================================================== */

img {
	max-width: 100%;
	height: auto;
}


/* ==================================================
   03 — COMPOSANTS
   ================================================== */


/* ---------- Boutons Gutenberg ---------- */

.wp-block-button .wp-block-button__link {
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast),
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
	background-color: var(--brand-accent) !important;
	color: var(--brand-primary) !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
	text-decoration: none;
}

/* ==================================================
   ARTICLES À DÉCOUVRIR
   ================================================== */

.sc-related {
	margin-top: 70px;
	margin-bottom: 70px;
}

/* Masquer toute la section s'il n'y a aucun article associé */
.sc-related:not(:has(.wp-block-post)) {
    display: none;
}

/* Titre de section */
.sc-related > h2 {
	margin: 0 0 32px;

	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.2;

	color: var(--color-text);
}


/* ---------- Grille ---------- */

.sc-related .wp-block-post-template {
	gap: 28px;
}


/* ---------- Carte ---------- */

.sc-related .wp-block-post {
	overflow: hidden;

	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);

	box-shadow: var(--shadow-sm);

	transition:
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
}

.sc-related .wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}


/* ---------- Image ---------- */

.sc-related .wp-block-post-featured-image {
	margin: 0 0 22px;
	overflow: hidden;
}

.sc-related .wp-block-post-featured-image img {
	display: block;

	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;

	transition: transform 0.35s ease;
}

.sc-related .wp-block-post:hover
.wp-block-post-featured-image img {
	transform: scale(1.035);
}


/* ---------- Contenu de la carte ---------- */

.sc-related .wp-block-post-terms,
.sc-related .wp-block-post-title,
.sc-related .wp-block-post-date {
	margin-left: 22px;
	margin-right: 22px;
}


/* Catégorie */

.sc-related .wp-block-post-terms {
	margin-bottom: 12px;

	font-size: 13px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sc-related .wp-block-post-terms a {
	color: var(--brand-primary);
	text-decoration: none;
}


/* Titre */

.sc-related .wp-block-post-title {
	margin-top: 0;
	margin-bottom: 15px;

	font-size: 22px;
	line-height: 1.3;
}

.sc-related .wp-block-post-title a {
	color: var(--color-text);
	text-decoration: none;
}

.sc-related .wp-block-post-title a:hover,
.sc-related .wp-block-post-title a:focus {
	color: var(--brand-primary);
}


/* Date */

.sc-related .wp-block-post-date {
	margin-top: 0;
	margin-bottom: 22px;

	font-size: 14px;
	color: var(--color-muted);
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {

	.sc-related {
		margin-top: 50px;
		margin-bottom: 50px;
	}

	.sc-related .wp-block-post-template {
		gap: 22px;
	}

	.sc-related .wp-block-post-title {
		font-size: 20px;
	}
}

/* ==================================================
   CHAPÔ D'ARTICLE
   ================================================== */

.single-post .entry-content .sc-lead {
    margin: 0 0 38px;
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.65;
    font-weight: 500;
    color: var(--color-text);
}

/* ==================================================
   SÉPARATEUR ÉDITORIAL
   ================================================== */

.single-post .entry-content .sc-separator {
    width: 70px;
    margin: 38px 0 52px;
    border: 0;
    border-top: 3px solid var(--brand-accent);
    opacity: 1;
}

/* ==================================================
   MÉDIA + TEXTE
   ================================================== */

.sc-media-text {
    margin: 50px 0;
    overflow: hidden;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Image */
.sc-media-text .wp-block-media-text__media {
    align-self: stretch;
    min-height: 100%;
}

.sc-media-text .wp-block-media-text__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;

    object-fit: cover;
}

/* Zone de contenu */
.sc-media-text .wp-block-media-text__content {
    padding: 42px;
}

/* Titre */
.single-post .entry-content .sc-media-text h3 {
    margin: 0 0 16px;

    color: var(--brand-primary);
    font-size: 24px;
    line-height: 1.3;
}

/* Texte */
.sc-media-text .wp-block-media-text__content p {
    text-align: justify;
    text-justify: inter-word;
}

/* Dernier élément */
.sc-media-text .wp-block-media-text__content > :last-child {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {

    .sc-media-text .wp-block-media-text__media {
        height: auto;
        min-height: 0;
        align-self: auto;
    }
    
    .sc-media-text .wp-block-media-text__media img {
        display: block;
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .sc-media-text .wp-block-media-text__content {
        padding: 26px 24px 30px;
    }
    
        /* Espace au-dessus du titre sur mobile */
    .single-post .entry-content .sc-media-text h3 {
        margin-top: 22px;
    }
    
    /* Respiration après le dernier contenu */
    .sc-media-text .wp-block-media-text__content > :last-child {
    margin-bottom: 22px;
}

    .sc-media-text .wp-block-media-text__content p {
        text-align: left;
    }
}

/* Variante pour affiches et visuels à conserver entièrement */
.sc-media-text.sc-media-contain .wp-block-media-text__media {
    background: var(--color-surface);
}

.sc-media-text.sc-media-contain .wp-block-media-text__media img {
    height: auto;
    min-height: 0;
    object-fit: contain;
}


/* ==================================================
   TABLEAU ÉDITORIAL / DONNÉES
   ================================================== */

.sc-table {
    margin: 45px 0;
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ---------- Tableau ---------- */

.sc-table table {
    width: 100%;
    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    background: var(--color-background);
}

/* ---------- En-tête ---------- */

.sc-table thead {
    background: var(--brand-primary);
    color: #fff;
}

.sc-table table th {
    padding: 17px 20px;

    border: 0 !important;

    text-align: left;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Séparation discrète uniquement dans l'en-tête */
.sc-table table thead th + th {
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* ---------- Corps ---------- */

.sc-table table td {
    padding: 17px 20px;

    border: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;

    vertical-align: middle;
}

/* Dernière ligne */
.sc-table table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Alternance légère */
.sc-table tbody tr:nth-child(even) {
    background: var(--color-surface);
}

/* Survol desktop */
.sc-table tbody tr {
    transition: background-color var(--transition-fast);
}

.sc-table tbody tr:hover {
    background: var(--color-surface);
}

/* ---------- Légende ---------- */

.sc-table figcaption {
    margin: 0;
    padding: 12px 16px;

    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .sc-table {
        overflow: hidden;
    }

    .sc-table table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .sc-table th,
    .sc-table td {
        padding: 11px 8px;

        white-space: normal;
        overflow-wrap: anywhere;

        font-size: 14px;
        line-height: 1.4;
    }
}


/* ==================================================
   ENCADRÉ ÉDITORIAL — À RETENIR
   ================================================== */

.sc-callout {
    margin: 45px 0;
    padding: 28px 32px;

    background: var(--color-surface);
    border-left: 5px solid var(--brand-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sc-callout h3 {
    margin: 0 0 10px;
    color: var(--brand-primary);
    font-size: 21px;
    line-height: 1.3;
}

.sc-callout p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .sc-callout {
        margin: 35px 0;
        padding: 24px;
    }
}

/* ==================================================
   CITATION / TÉMOIGNAGE
   ================================================== */

.single-post .entry-content .sc-quote {
    position: relative;
    margin: 50px 0;
    padding: 34px 40px 32px 72px;

    background: var(--color-surface);
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Guillemets décoratifs */
.single-post .entry-content .sc-quote::before {
    content: "“";
    position: absolute;
    top: 18px;
    left: 26px;

    color: var(--brand-accent);
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
}

/* Neutraliser la citation en exergue native */
.single-post .entry-content .sc-quote .wp-block-pullquote {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

/* Supprimer la barre native */
.single-post .entry-content .sc-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Texte de citation */
.single-post .entry-content .sc-quote p {
    margin: 0 0 16px;

    color: var(--color-text);
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.65;
    font-style: italic;
    text-align: left;
}

/* Auteur / source */
.single-post .entry-content .sc-quote cite {
    display: block;
    margin: 0;

    color: var(--brand-primary);
    font-size: 15px;
    line-height: 1.5;
    font-style: normal;
    font-weight: 700;
    text-align: left;
}

@media (max-width: 768px) {

    .single-post .entry-content .sc-quote {
        margin: 40px 0;
        padding: 30px 24px 28px 56px;
    }

    .single-post .entry-content .sc-quote::before {
        top: 17px;
        left: 18px;
        font-size: 52px;
    }

    .single-post .entry-content .sc-quote p {
        font-size: 18px;
    }
}

/* ==================================================
   DEUX COLONNES ÉDITORIALES
   ================================================== */

.single-post .entry-content .sc-two-columns {
    gap: 28px;
    margin: 50px 0;
    align-items: stretch !important;
}

/* Cartes */
.single-post .entry-content .sc-two-columns .wp-block-column {
    padding: 30px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Titres */
.single-post .entry-content .sc-two-columns .wp-block-column h3 {
    margin: 0 0 16px;
    color: var(--brand-primary);
    font-size: 22px;
    line-height: 1.3;
}

/* Paragraphes */
.single-post .entry-content .sc-two-columns .wp-block-column p {
    text-align: justify;
    text-justify: inter-word;
}

/* Dernier élément */
.single-post .entry-content .sc-two-columns
.wp-block-column > :last-child {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 781px) {

    .single-post .entry-content .sc-two-columns {
        gap: 20px;
    }

    .single-post .entry-content .sc-two-columns .wp-block-column {
        padding: 24px;
    }

    .single-post .entry-content .sc-two-columns .wp-block-column p {
        text-align: left;
    }
}

/* ==================================================
   CTA — FIN D'ARTICLE
   ================================================== */

.sc-cta {
    margin: 60px 0 20px;
    padding: 42px 46px;

    background: var(--brand-primary);
    border-radius: var(--radius-md);
    color: #fff;
}

/* Titre */
.single-post .entry-content .sc-cta h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.2;
}

/* Texte */
.sc-cta p {
    margin: 0 0 26px;
    max-width: 680px;
    color: #fff;
    line-height: 1.7;
}

/* Bouton */
.single-post .entry-content .sc-cta .wp-block-button__link {
    background: var(--brand-accent);
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Survol du bouton */
.single-post .entry-content .sc-cta .wp-block-button__link:hover,
.single-post .entry-content .sc-cta .wp-block-button__link:focus {
    background: #fff !important;
    color: var(--brand-primary) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .sc-cta {
        margin-top: 45px;
        padding: 30px 24px;
    }
}


/* ==================================================
   04 — HEADER / FOOTER
   ================================================== */

/* ---------- Header sticky ---------- */

#masthead {
	position: sticky;
	top: 0;
	z-index: 1000;

	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Header compact */
#masthead .inside-header {
	padding-top: 6px;
	padding-bottom: 6px;
}

/* Logo compact desktop */
#masthead .site-logo img {
	width: auto;
	height: 70px;
	max-height: 70px;
}

/* Compense la barre admin uniquement sur ordinateur */
@media (min-width: 783px) {
	body.admin-bar #masthead {
		top: 32px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 782px) {

	#masthead {
		top: 0;
	}

	#masthead .inside-header {
		padding: 5px 18px;
	}

	#masthead .site-logo img {
		width: auto;
		height: 54px;
		max-height: 54px;
	}

	html {
		scroll-padding-top: 70px;
	}
}

@media (min-width: 783px) {
	html {
		scroll-padding-top: 90px;
	}
}



/* ---------- Liens du footer ---------- */

.site-info a {
	text-decoration: none;
}

.site-info a:hover,
.site-info a:focus {
	text-decoration: underline;
}

/* ==================================================
   SIDEBAR
   ================================================== */

/* ---------- Structure GeneratePress ---------- */

#right-sidebar .inside-right-sidebar > .widget {
	padding: 0;
	margin-bottom: 32px;
}

#right-sidebar .inside-right-sidebar > .widget:last-child {
	margin-bottom: 0;
}

/* ---------- CTA ---------- */

.sc-sidebar-cta {
	padding: 28px;

	background: var(--color-surface);
	border-top: 4px solid var(--brand-accent);
	border-radius: var(--radius-md);

	box-shadow: var(--shadow-sm);
}

.sc-sidebar-cta h4 {
	margin: 0 0 14px;

	color: var(--brand-primary);
	font-size: 21px;
	line-height: 1.3;
}

.sc-sidebar-cta p {
	margin: 0 0 22px;

	color: var(--color-text);
	line-height: 1.6;
}

.sc-sidebar-cta .wp-block-buttons {
	margin: 0;
}

.sc-sidebar-cta .wp-block-button__link {
	background: var(--brand-primary);
	color: #fff;

	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}


/* ---------- À découvrir ---------- */

.sc-sidebar-discover {
	margin-top: 32px;
}

.sc-sidebar-discover h4 {
	margin: 0 0 18px;

	color: var(--color-text);
	font-size: 20px;
	line-height: 1.3;
}

.sc-sidebar-discover p {
	margin: 0;
	line-height: 1.8;
}

.sc-sidebar-discover a {
	color: var(--color-text);
	text-decoration: none;

	transition: color var(--transition-fast);
}

.sc-sidebar-discover a:hover,
.sc-sidebar-discover a:focus {
	color: var(--brand-primary);
	text-decoration: underline;
}

/* ---------- Catégories de la sidebar ---------- */

.sc-sidebar-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;

	margin: 18px 0 0;
	padding: 0;

	list-style: none;
}

.sc-sidebar-categories li {
	margin: 0;
	padding: 0;
}

.sc-sidebar-categories a {
	display: inline-block;
	padding: 6px 11px;

	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;

	color: var(--brand-primary);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;

	transition:
		background var(--transition-fast),
		border-color var(--transition-fast),
		color var(--transition-fast);
}

.sc-sidebar-categories a:hover,
.sc-sidebar-categories a:focus {
	background: #fff;
	border-color: var(--brand-accent);
	color: var(--brand-primary);
	text-decoration: none;
}

/* ---------- Réseaux sociaux ---------- */

.sc-sidebar-social {
	margin-top: 32px;
}

.sc-sidebar-social h5 {
	margin: 0 0 16px;

	color: var(--color-text);
	font-size: 17px;
	line-height: 1.3;
}

.sc-sidebar-social .wp-block-social-links {
	margin: 0;
}

/* --------------------------------------------------
   Conteneurs GeneratePress — largeur totale du hero
   Les couleurs de fond restent gérées dans le personnalisateur.
   -------------------------------------------------- */

body.single-post #page,
body.page:not(.home) #page {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.single-post #content,
body.page:not(.home) #content {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

body.single-post #primary,
body.page:not(.home) #primary,
body.single-post #main,
body.page:not(.home) #main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Les marges de lecture restent sur article.post / article.page. */

/* ==================================================
   05 — BLOG / ARTICLES
   ================================================== */


/* --------------------------------------------------
   Structure articles : hero pleine largeur
   -------------------------------------------------- */

.single-post #right-sidebar { display: none; }

.single-post #page,
.single-post .site-content,
.single-post #primary {
    width: 100%;
    max-width: none;
    margin: 0;
}

.single-post .site-content,
.single-post #primary {
    padding-left: 0;
    padding-right: 0;
}

/* --------------------------------------------------
   Hero de l'article
   -------------------------------------------------- */

.single-post .sc-post-hero {
	position: relative;

	width: 100%;
	max-width: none;
	margin: 0;

	min-height: 520px;

	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;

	overflow: hidden;
}

.single-post .sc-post-hero-overlay {
	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.48);

	display: flex;
	align-items: center;
}

.single-post .sc-post-hero-inner {
	box-sizing: border-box;

	width: 100%;
	max-width: var(--container-wide);

	margin: 0 auto;
	padding: 60px 40px;
}

.single-post .sc-post-category {
	color: var(--brand-accent);

	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;

	margin: 0 0 15px;
}

.single-post .sc-post-title {
	color: #FFFFFF;

	font-size: clamp(40px, 4vw, 64px);
	line-height: 1.08;
	font-weight: 700;

	max-width: 900px;

	margin: 0 0 22px;
}

.single-post .sc-post-date {
	color: #FFFFFF;
	font-size: 16px;
}


/* --------------------------------------------------
   Nettoyage des éléments GeneratePress en doublon
   -------------------------------------------------- */

/* L'image est déjà utilisée comme fond du hero. */
.single-post .featured-image.page-header-image-single {
	display: none !important;
}

/* Titre + métadonnées déjà présents dans le hero. */
.single-post article.post .entry-header {
	display: none;
}

/* Catégorie / métadonnées GeneratePress. */
.single-post article.post .entry-meta {
	display: none;
}


/* --------------------------------------------------
   Corps de l'article
   -------------------------------------------------- */

.single-post article.post {
	max-width: var(--container-post);
	margin: 0 auto;
	padding: 60px 30px 80px;
}

.single-post .entry-content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--color-text);
}

.single-post .entry-content p {
	margin-bottom: 1.5em;
	text-align: justify;
	text-justify: inter-word;
}

.single-post .entry-content h2 {
	margin-top: 2em;
	margin-bottom: 0.7em;
	color: var(--brand-primary);
}

.single-post .entry-content h3 {
	margin-top: 1.6em;
	margin-bottom: 0.6em;
}

.single-post .entry-content img {
	max-width: 100%;
	height: auto;
}


/* ==================================================
   BLOG — ARCHIVES / LISTE DES ARTICLES
   ================================================== */

/* Carte article */
.blog #primary article.post,
.archive #primary article.post {
	margin-bottom: 36px;
}

.blog #primary article.post .inside-article,
.archive #primary article.post .inside-article {
	display: grid;
	grid-template-columns: minmax(220px, 38%) 1fr;
	grid-template-areas:
		"image header"
		"image summary"
		"image footer";
	column-gap: 28px;
	align-items: start;

	padding: 0;
	overflow: hidden;

	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}


/* ---------- Image ---------- */

.blog #primary .post-image,
.archive #primary .post-image {
	grid-area: image;

	width: 100%;
	height: 100%;
	margin: 0;
}

.blog #primary .post-image a,
.archive #primary .post-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.blog #primary .post-image img,
.archive #primary .post-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;

	object-fit: cover;
}


/* ---------- En-tête ---------- */

.blog #primary .entry-header,
.archive #primary .entry-header {
	grid-area: header;

	padding: 26px 26px 0;
}

.blog #primary .entry-title,
.archive #primary .entry-title {
	margin: 0 0 8px;

	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.2;
}

.blog #primary .entry-title a,
.archive #primary .entry-title a {
	color: var(--color-text);
	text-decoration: none;

	transition: color var(--transition-fast);
}

.blog #primary .entry-title a:hover,
.blog #primary .entry-title a:focus,
.archive #primary .entry-title a:hover,
.archive #primary .entry-title a:focus {
	color: var(--brand-primary);
}

.blog #primary .entry-header .entry-meta,
.archive #primary .entry-header .entry-meta {
	color: var(--color-muted);
	font-size: 13px;
}


/* L'auteur technique n'est pas utile dans la liste */
.blog #primary .entry-header .byline,
.archive #primary .entry-header .byline {
	display: none;
}


/* ---------- Extrait ---------- */

.blog #primary .entry-summary,
.archive #primary .entry-summary {
	grid-area: summary;

	padding: 16px 26px 0;
	margin: 0;

	color: var(--color-text);
	line-height: 1.65;
}

.blog #primary .entry-summary p,
.archive #primary .entry-summary p {
	margin: 0;
}

.blog #primary .read-more,
.archive #primary .read-more {
	display: inline-block;
	margin-left: 4px;

	color: var(--brand-primary);
	font-weight: 700;
	text-decoration: none;
}

.blog #primary .read-more:hover,
.blog #primary .read-more:focus,
.archive #primary .read-more:hover,
.archive #primary .read-more:focus {
	text-decoration: underline;
}


/* ---------- Catégories ---------- */

.blog #primary footer.entry-meta,
.archive #primary footer.entry-meta {
	grid-area: footer;

	padding: 20px 26px 26px;
	margin: 0;
}

.blog #primary .cat-links,
.archive #primary .cat-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.blog #primary .cat-links .gp-icon,
.archive #primary .cat-links .gp-icon {
	display: none;
}

.blog #primary .cat-links a,
.archive #primary .cat-links a {
	display: inline-block;
	padding: 5px 10px;

	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;

	color: var(--brand-primary);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;

	transition:
		background var(--transition-fast),
		border-color var(--transition-fast);
}

.blog #primary .cat-links a:hover,
.blog #primary .cat-links a:focus,
.archive #primary .cat-links a:hover,
.archive #primary .cat-links a:focus {
	background: #fff;
	border-color: var(--brand-accent);
}


/* ---------- Responsive ---------- */

@media (max-width: 768px) {

	.blog #primary article.post .inside-article,
	.archive #primary article.post .inside-article {
		grid-template-columns: 1fr;
		grid-template-areas:
			"image"
			"header"
			"summary"
			"footer";
	}

	.blog #primary .post-image,
	.archive #primary .post-image {
		height: auto;
	}

	.blog #primary .post-image img,
	.archive #primary .post-image img {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
		object-fit: cover;
	}

	.blog #primary .entry-header,
	.archive #primary .entry-header {
		padding: 22px 22px 0;
	}

	.blog #primary .entry-summary,
	.archive #primary .entry-summary {
		padding: 14px 22px 0;
	}

	.blog #primary footer.entry-meta,
	.archive #primary footer.entry-meta {
		padding: 18px 22px 22px;
	}
}


/* ==================================================
   06 — UTILITAIRES GUTENBERG
   ================================================== */


/* Réduire l'espace au-dessus d'un élément */

.rapprocher-haut {
	margin-top: -15px !important;
}


/* Texte justifié */

.texte-justifie {
	text-align: justify;
}


/* Marges internes identiques pour les colonnes */

.colonne-contenu {
	padding: 40px;
}



/* Espace au-dessus d'un texte après image / vidéo */

.texte-apres-image {
	margin-top: 20px !important;
}


/* ==================================================
   07 — RESPONSIVE
   ================================================== */


/* ---------- Tablette ---------- */

@media (max-width: 1100px) {

	/* Hero article */

	.single-post .sc-post-hero {
		min-height: 460px;
	}

	.single-post .sc-post-hero-inner {
		padding: 50px 32px;
	}

	.single-post .sc-post-title {
		font-size: clamp(36px, 5vw, 52px);
		max-width: 760px;
	}


	/* Hero page */

	.page .sc-page-hero {
		min-height: 380px;
	}

	.page .sc-page-hero-inner {
		padding: 50px 32px;
	}

	.page .sc-page-title {
		font-size: clamp(36px, 5vw, 52px);
		max-width: 760px;
	}
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {

	/* Utilitaires */

	.colonne-contenu {
		padding: 24px;
	}

	.atelier-media .wp-block-media-text__content {
		padding-top: 24px;
	}


	/* Hero article */

	.single-post .sc-post-hero {
		min-height: 420px;
	}

	.single-post .sc-post-hero-inner {
		padding: 40px 18px;
	}

	.single-post .sc-post-category {
		font-size: 13px;
		margin-bottom: 12px;
	}

	.single-post .sc-post-title {
		font-size: clamp(32px, 9vw, 42px);
		line-height: 1.08;
		max-width: 100%;
		margin-bottom: 18px;
	}

	.single-post .sc-post-date {
		font-size: 14px;
	}
	
	.single-post .entry-content p {
	text-align: left;
}

	/* Hero page */

	.page .sc-page-hero {
		min-height: 320px;
	}

	.page .sc-page-hero-inner {
		padding: 40px 18px;
	}

	.page .sc-page-title {
		font-size: clamp(32px, 9vw, 42px);
		line-height: 1.08;
		max-width: 100%;
	}


	/* Corps article */

	.single-post article.post {
		padding: 35px 22px 55px;
	}

	.single-post .entry-content {
		font-size: 17px;
		line-height: 1.7;
	}
}


/* ==================================================
   08 — PAGES CMS
   ================================================== */


/* --------------------------------------------------
   Structure générale des pages
   -------------------------------------------------- */

body.page #page,
body.page #content,
body.page #primary,
body.page #main,
body.page article,
body.page .inside-article,
body.page .entry-content {
	margin-top: 0;
	padding-top: 0;
}


/* --------------------------------------------------
   Hero automatique des pages
   -------------------------------------------------- */

.page .sc-page-hero {
	position: relative;

	width: 100%;
	max-width: none;
	min-height: 420px;

	margin: 0;

	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;

	overflow: hidden;
}

.page .sc-page-hero-overlay {
	position: absolute;
	inset: 0;

	display: flex;
	align-items: center;

	background: rgba(0, 0, 0, 0.48);
}

.page .sc-page-hero-inner {
	box-sizing: border-box;

	width: 100%;
	max-width: var(--container-wide);

	margin: 0 auto;
	padding: 60px 40px;
}

.page .sc-page-title {
	max-width: 900px;
	margin: 0;

	color: #FFFFFF;

	font-size: clamp(40px, 4vw, 64px);
	line-height: 1.08;
	font-weight: 700;
}


/* --------------------------------------------------
   Nettoyage des éléments GeneratePress en doublon
   -------------------------------------------------- */

.page .featured-image.page-header-image {
	display: none !important;
}

.page article.page .entry-header {
	display: none;
}


/* --------------------------------------------------
   Corps éditorial
   Même largeur que les articles
   -------------------------------------------------- */

.page:not(.home) article.page {
	max-width: var(--container-page);

	margin: 0 auto;
	padding: 60px 30px 80px;
}


/* --------------------------------------------------
   Typographie générale
   -------------------------------------------------- */

.page .entry-content p {
	text-align: justify;
	text-justify: inter-word;
}


/* --------------------------------------------------
   Introduction
   -------------------------------------------------- */

.page .sc-page-intro {
	margin: 0 0 40px;
	padding: 0;
	background: transparent !important;
}

.page .sc-page-intro > .wp-block-group__inner-container {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.page .sc-page-intro-lead {
	margin: 0;

	font-size: clamp(19px, 2vw, 22px);
	line-height: 1.65;
	font-weight: 500;

	color: var(--color-text);
}


/* --------------------------------------------------
   Séparateur de page
   -------------------------------------------------- */

.page .sc-page-separator {
	width: 70px;

	margin: 32px 0 0;

	border: 0;
	border-top: 3px solid var(--brand-primary);

	opacity: 1;
}


/* --------------------------------------------------
   Sections de contenu
   -------------------------------------------------- */

.page .sc-page-section {
	margin: 0 0 60px;
	padding: 0;
}

.page .sc-page-section > .wp-block-group__inner-container {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.page .sc-page-section h2 {
	margin: 0 0 28px;

	color: var(--brand-primary);

	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.2;
}

.page .sc-page-section p {
	margin: 0 0 1.5em;
	line-height: 1.75;
}

.page .sc-page-section > :last-child {
	margin-bottom: 0;
}
/* ==================================================
   09 — V1.4 : FONDS, SIDEBAR ET INDEX DU BLOG
   Les pages CMS restent pilotées par le personnalisateur.
   ================================================== */

/* Blanc réservé aux pages de lecture et listes d'articles. */
body.single-post, body.blog, body.archive,
body.single-post #page, body.blog #page, body.archive #page,
body.single-post #content, body.blog #content, body.archive #content,
body.single-post #primary, body.blog #primary, body.archive #primary,
body.single-post #main, body.blog #main, body.archive #main {
    background-color: #fff;
}

/* La grille de l'index conserve sa sidebar et son centrage. */
body.blog #page, body.archive #page {
    width: 100%;
    max-width: none;
}
body.blog #content, body.archive #content {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
}


/* Hero de l'index et des archives, avant la grille avec sidebar. */
.sc-archive-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 360px;
    width: 100%;
    background-color: #292524;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.sc-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,.48);
}
.sc-archive-hero-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 65px 30px;
}
.sc-archive-hero h1 {
    color: #fff;
    font-size: clamp(36px,4vw,60px);
    line-height: 1.12;
    margin: 0;
}
.sc-archive-hero p { color: #fff; margin: 16px 0 0; max-width: 720px; }
/* Masquer les titres d'archives GeneratePress en doublon. */
body.blog .page-header, body.archive .page-header { display: none; }
@media (max-width: 768px) {
    .sc-archive-hero { min-height: 270px; }
    .sc-archive-hero-inner { padding: 50px 24px; }
}


/* ==================================================
   V1.5 — ARCHIVES : HERO HORS GRILLE ET SIDEBAR
   ================================================== */
/* Le hero est injecté après le header, avant #content : pas de breakout 100vw. */
body.blog .sc-archive-hero,
body.archive .sc-archive-hero {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
}
/* Restaurer des cartes de widgets avec la même identité que le CTA. */
body.blog #right-sidebar .inside-right-sidebar > .widget,
body.archive #right-sidebar .inside-right-sidebar > .widget {
    box-sizing: border-box;
    background: var(--color-surface);
    border-top: 4px solid var(--brand-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    overflow: hidden;
}
/* Un CTA déjà stylé ne doit pas recevoir une seconde carte autour de lui. */
body.blog #right-sidebar .widget:has(.sc-sidebar-cta),
body.archive #right-sidebar .widget:has(.sc-sidebar-cta) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}
/* Les blocs internes sans couleur explicite héritent de la carte. */
body.blog #right-sidebar .widget > .inside-widget,
body.archive #right-sidebar .widget > .inside-widget {
    background: transparent;
}

/* ==================================================
   10 — V1.6 : ACCESSIBILITÉ ET ROBUSTESSE RESPONSIVE
   Ajouts non destructifs aux styles V1.5 validés.
   ================================================== */

/* Les images et cartes ne doivent pas provoquer de débordement horizontal. */
.sc-related .wp-block-post,
.sc-media-text,
.sc-table,
.sc-sidebar-cta {
    min-width: 0;
}

/* Navigation clavier identifiable sur les liens interactifs personnalisés. */
.sc-sidebar-cta a:focus-visible,
.sc-sidebar-categories a:focus-visible,
.sc-related a:focus-visible,
.blog #primary article.post a:focus-visible,
.archive #primary article.post a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

/* Respect des préférences système de réduction des animations. */
@media (prefers-reduced-motion: reduce) {
    .sc-related .wp-block-post,
    .sc-related .wp-block-post-featured-image img,
    .wp-block-button .wp-block-button__link,
    .sc-sidebar-categories a {
        transition: none;
        transform: none;
    }
}

/* ==================================================
   V1.7.1 — TYPOGRAPHIE ET ESPACEMENT MOBILE
   Correctif validé sur le site, sans couleur imposée.
   ================================================== */

body.page .entry-content p,
body.single-post .entry-content p {
    text-align: justify;
}

@media (max-width: 600px) {
    .entry-content .wp-block-media-text.is-stacked-on-mobile
    .wp-block-media-text__content {
        padding-top: 24px;
    }
}


/* ==================================================
   V1.8 — ROBUSTESSE TYPOGRAPHIQUE ET MOBILE
   Sans couleur codée en dur : palette GeneratePress conservée.
   ================================================== */

/* Les longs liens ne doivent pas élargir les colonnes sur petit écran. */
body.page .entry-content,
body.single-post .entry-content,
body.blog #primary,
body.archive #primary,
#right-sidebar .widget {
    overflow-wrap: break-word;
}

/* Césures uniquement pour les contenus en français :
   améliore les paragraphes justifiés sur écran étroit. */
html[lang^="fr"] body.page .entry-content p,
html[lang^="fr"] body.single-post .entry-content p {
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Les médias Gutenberg conservent leurs proportions sur mobile. */
@media (max-width: 600px) {
    .entry-content .wp-block-media-text__media img {
        max-width: 100%;
        height: auto;
    }
}

/* ==================================================
   V1.9 — MENU DE PIED DE PAGE PORTABLE (OPTIONNEL)
   Le style historique est conservé sans menu affecté.
   ================================================== */
.sc-footer-nav { display: inline; }
.sc-footer-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.45em 1em; list-style: none; padding: 0; margin: 0 0 0 0.75em; }
.sc-footer-links li { display: inline; margin: 0; }
.sc-footer-links a { color: inherit; }
@media (max-width: 600px) {
    .sc-footer-nav { display: block; margin-top: 0.6em; }
    .sc-footer-links { margin-left: 0; }
}


/* ==================================================
   V2.1 — NAVIGATION SUR BANNIÈRE GUTENBERG (ACCUEIL)
   Activée uniquement si le premier bloc est une Couverture.
   Le contenu de la bannière reste entièrement éditable.
   ================================================== */
body.home.sc-home-cover-header #masthead {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
    box-shadow: none;
}
body.home.sc-home-cover-header #masthead .inside-header {
    background: transparent;
}
/* Navigation intégrée au header GeneratePress. */
body.home.sc-home-cover-header #masthead #site-navigation,
body.home.sc-home-cover-header #masthead .main-navigation {
    background: transparent;
}
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul li a,
body.home.sc-home-cover-header #masthead .main-navigation .menu-toggle,
body.home.sc-home-cover-header #masthead .main-navigation .menu-bar-item > a,
body.home.sc-home-cover-header #masthead .site-title a,
body.home.sc-home-cover-header #masthead .site-description {
    color: #fff;
}
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul li:hover > a,
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul li:focus-within > a,
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul li.current-menu-item > a {
    color: #fff;
    text-decoration: none;
}
/* Le sous-menu et le menu mobile ouverts restent lisibles. */
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul ul,
body.home.sc-home-cover-header #masthead .main-navigation.toggled .main-nav {
    background: var(--color-surface);
}
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul ul a,
body.home.sc-home-cover-header #masthead .main-navigation.toggled .main-nav > ul > li > a {
    color: var(--color-text);
}
body.home.sc-home-cover-header #masthead .main-navigation .main-nav ul ul a:hover,
body.home.sc-home-cover-header #masthead .main-navigation.toggled .main-nav > ul > li > a:hover {
    color: var(--brand-primary);
}
body.home.sc-home-cover-header .entry-content > .wp-block-cover:first-child {
    min-height: max(520px, 75svh);
}
@media (max-width: 768px) {
    body.home.sc-home-cover-header #masthead {
        background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
    }
    body.home.sc-home-cover-header .entry-content > .wp-block-cover:first-child {
        min-height: max(470px, 75svh);
    }
}
@media (prefers-reduced-motion: reduce) {
    body.home.sc-home-cover-header #masthead * { transition-duration: 0.01ms !important; }
}


/* ==================================================
   V2.2 — NAVIGATION IMMERSIVE REUTILISABLE
   Réglages : Apparence > Personnaliser > Navigation immersive
   Le motif SVG est un masque monochrome, teinté par GeneratePress.
   ================================================== */
:root { --sc-nav-logo-desktop: 90px; --sc-nav-logo-mobile: 70px; }
#masthead .site-logo img { height: var(--sc-nav-logo-desktop); max-height: var(--sc-nav-logo-desktop); width: auto; }
@media (max-width: 782px) {
  #masthead .site-logo img { height: var(--sc-nav-logo-mobile); max-height: var(--sc-nav-logo-mobile); width: auto; }
}
/* Ne jamais activer la superposition en l'absence d'un Hero identifié. */
body.sc-immersive-nav #masthead {
  position: absolute; inset: 0 0 auto; width: 100%; z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,.68), rgba(0,0,0,0)); box-shadow: none;
}
body.sc-immersive-nav #masthead .inside-header,
body.sc-immersive-nav #masthead #site-navigation,
body.sc-immersive-nav #masthead .main-navigation { background: transparent; }
body.sc-immersive-nav #masthead .main-navigation .main-nav > ul > li > a,
body.sc-immersive-nav #masthead .main-navigation .menu-toggle,
body.sc-immersive-nav #masthead .main-navigation .menu-bar-item > a,
body.sc-immersive-nav #masthead .site-title a,
body.sc-immersive-nav #masthead .site-description { color: #fff; }
/* Annule le soulignement de la V2.1. */
body.sc-immersive-nav #masthead .main-navigation .main-nav > ul > li:hover > a,
body.sc-immersive-nav #masthead .main-navigation .main-nav > ul > li:focus-within > a,
body.sc-immersive-nav #masthead .main-navigation .main-nav > ul > li.current-menu-item > a,
body.sc-immersive-nav #masthead .main-navigation .main-nav > ul > li.current-menu-ancestor > a {
  color: #fff; text-decoration: none;
}
/* Fond opaque pour sous-menus et panneau mobile ouvert. */
body.sc-immersive-nav #masthead .main-navigation .main-nav ul ul,
body.sc-immersive-nav #masthead .main-navigation.toggled .main-nav { background: var(--color-surface); }
body.sc-immersive-nav #masthead .main-navigation .main-nav ul ul a,
body.sc-immersive-nav #masthead .main-navigation.toggled .main-nav > ul > li > a { color: var(--color-text); }
body.sc-immersive-nav #masthead .main-navigation .main-nav ul ul a:hover,
body.sc-immersive-nav #masthead .main-navigation.toggled .main-nav > ul > li > a:hover { color: var(--brand-primary); }
/* V2.2.1 : une seule décoration, sur ::before (pas de conflit avec ::after). */
@media (min-width: 783px) {
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li > a,
  body.sc-nav-decoration-line #masthead #site-navigation .main-nav > ul > li > a,
  body.sc-nav-decoration-none #masthead #site-navigation .main-nav > ul > li > a {
    position: relative;
  }
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li > a::before,
  body.sc-nav-decoration-line #masthead #site-navigation .main-nav > ul > li > a::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li > a::before {
    width: 64px;
    height: 27px;
    bottom: -12px;
    background-color: var(--brand-accent);
    -webkit-mask-image: url('assets/rose-mouvement.svg');
    -webkit-mask-mode: alpha;
    mask-image: url('assets/rose-mouvement.svg');
    mask-mode: alpha;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  body.sc-nav-decoration-line #masthead #site-navigation .main-nav > ul > li > a::before {
    width: 48%; height: 2px; background: var(--brand-accent); bottom: 6px;
  }
  body:is(.sc-nav-decoration-rose,.sc-nav-decoration-line) #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  /* Désactiver l'ancien pseudo-élément de V2.2 pour empêcher le doublon. */
  body:is(.sc-nav-decoration-rose,.sc-nav-decoration-line,.sc-nav-decoration-none) #masthead #site-navigation .main-nav > ul > li > a::after {
    content: none;
  }
}
/* Le lien ne reçoit jamais le soulignement historique du Hero. */
body:is(.sc-nav-decoration-rose,.sc-nav-decoration-line,.sc-nav-decoration-none) #masthead #site-navigation .main-nav > ul > li > a,
body:is(.sc-nav-decoration-rose,.sc-nav-decoration-line,.sc-nav-decoration-none) #masthead #site-navigation .main-nav > ul > li:hover > a,
body:is(.sc-nav-decoration-rose,.sc-nav-decoration-line,.sc-nav-decoration-none) #masthead #site-navigation .main-nav > ul > li:focus-within > a {
  text-decoration: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #masthead #site-navigation .main-nav > ul > li > a::before { transition: none !important; }
}
/* Les contenus de Hero ne doivent pas passer derrière la navigation. */
body.sc-immersive-nav .sc-page-hero-inner,
body.sc-immersive-nav .sc-post-hero-inner,
body.sc-immersive-nav .sc-archive-hero-inner { padding-top: clamp(110px, 13vw, 165px); }
/* Bouton mobile : lignes natives plus fines et interactions accessibles. */
@media (max-width: 782px) {
  #masthead .menu-toggle { border-radius: 8px; min-width: 44px; min-height: 44px; }
  #masthead .menu-toggle .gp-icon svg { width: 23px; height: 23px; }
  body.sc-immersive-nav #masthead { background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0)); }
  body.sc-immersive-nav .sc-page-hero-inner,
  body.sc-immersive-nav .sc-post-hero-inner,
  body.sc-immersive-nav .sc-archive-hero-inner { padding-top: 125px; }
}
@media (prefers-reduced-motion: reduce) {
  #masthead .main-navigation .main-nav > ul > li > a::after { transition: none !important; }
}

/* V2.2.2 : masque SVG à canal alpha (compatibilité navigateurs). */
@media (min-width: 783px) {
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li > a::before {
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    -webkit-mask-composite: source-over;
    background-color: var(--brand-accent, currentColor);
  }
}

/* V2.2.3 — Rose plus visible, positionnée au coin inférieur droit du lien. */
@media (min-width: 783px) {
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li > a::before {
    width: 106px;
    height: 66px;
    left: auto;
    right: -12px;
    bottom: -25px;
    transform: translate(0, 5px);
    -webkit-mask-image: url('assets/rose-mouvement.svg');
    mask-image: url('assets/rose-mouvement.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
  }
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before {
    transform: translate(0, 0);
  }
}

/* V2.2.4 — Rose calligraphique adoucie, 70 % d’opacité, à droite du lien. */
@media (min-width: 783px) {
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li > a::before {
    width: 96px;
    height: 60px;
    right: -14px;
    bottom: -22px;
    left: auto;
    opacity: 0;
    background-color: var(--brand-accent, currentColor);
    -webkit-mask-image: url('assets/rose-mouvement.svg');
    mask-image: url('assets/rose-mouvement.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform: translateY(4px);
  }
  body.sc-nav-decoration-rose #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before {
    opacity: .7;
    transform: translateY(0);
  }
}

/* V2.2.5 — Placement optionnel de l’ornement (sans modifier la navigation mobile).
   Les coordonnées s'appliquent aux liens principaux uniquement. */
@media (min-width: 783px) {
  body.sc-nav-decoration-rose.sc-nav-ornament-left #masthead #site-navigation .main-nav > ul > li > a::before,
  body.sc-nav-decoration-rose.sc-nav-ornament-center #masthead #site-navigation .main-nav > ul > li > a::before,
  body.sc-nav-decoration-rose.sc-nav-ornament-right #masthead #site-navigation .main-nav > ul > li > a::before {
    width: 96px;
    height: 60px;
    bottom: -22px;
    opacity: 0;
    pointer-events: none;
    -webkit-mask-image: url('assets/rose-mouvement.svg');
    mask-image: url('assets/rose-mouvement.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  body.sc-nav-decoration-rose.sc-nav-ornament-left #masthead #site-navigation .main-nav > ul > li > a::before {
    left: -18px; right: auto; transform: translateY(4px);
  }
  body.sc-nav-decoration-rose.sc-nav-ornament-center #masthead #site-navigation .main-nav > ul > li > a::before {
    left: 50%; right: auto; transform: translate(-50%,4px);
  }
  body.sc-nav-decoration-rose.sc-nav-ornament-right #masthead #site-navigation .main-nav > ul > li > a::before {
    left: auto; right: -14px; transform: translateY(4px);
  }
  body.sc-nav-decoration-rose.sc-nav-ornament-left #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before,
  body.sc-nav-decoration-rose.sc-nav-ornament-right #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before {
    opacity: .7; transform: translateY(0);
  }
  body.sc-nav-decoration-rose.sc-nav-ornament-center #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before {
    opacity: .7; transform: translate(-50%,0);
  }
  body.sc-nav-decoration-line.sc-nav-ornament-left #masthead #site-navigation .main-nav > ul > li > a::before { left: 0; right: auto; transform: translateY(4px); }
  body.sc-nav-decoration-line.sc-nav-ornament-right #masthead #site-navigation .main-nav > ul > li > a::before { left: auto; right: 0; transform: translateY(4px); }
  body.sc-nav-decoration-line.sc-nav-ornament-left #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before,
  body.sc-nav-decoration-line.sc-nav-ornament-right #masthead #site-navigation .main-nav > ul > li:is(:hover,:focus-within,.current-menu-item,.current_page_item,.current-menu-ancestor,.current_page_ancestor) > a::before { transform: translateY(0); }
}
