/*
 * Row Fil d'Ariane : bandeau d'en-tête (fil, titre actif, titre, description, bouton).
 * Mêmes classes dans l'éditeur (Views/Manager/Row/breadcrumb.php) et sur le site (helper breadcrumb).
 * La row Hero (Views/Manager/Row/hero.php) reprend ce bandeau sans le fil, avec la variante .bc-hero--badge (titre actif en pastille).
 * Le fond (couleur, photo, vidéo, flou), sa texture (section-texture.css), les marges et l'alignement sont les réglages de la section ou de la row.
 */

/* Bandeau */
.bc-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.9rem;
	text-align: left;
}

.row-align-center .bc-hero,
.r-align-center .bc-hero {
	align-items: center;
	text-align: center;
}

.row-align-right .bc-hero,
.r-align-right .bc-hero {
	align-items: flex-end;
	text-align: right;
}

.bc-hero > * {
	margin: 0;
}

.bc-trail {
	font-size: 0.9rem;
}

.bc-trail ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.bc-trail li + li::before {
	margin-right: 0.5rem;
	content: "›";
	opacity: 0.5;
}

.bc-trail a {
	color: inherit;
	text-decoration: none;
	opacity: 0.75;
}

.bc-trail a:hover {
	opacity: 1;
	text-decoration: underline;
}

.bc-trail [aria-current="page"] {
	font-weight: 500;
}

.bc-hero .bc-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--bc-eyebrow, var(--theme-primary, currentColor));
}

.bc-hero .bc-title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.1;
}

.bc-hero .bc-text {
	max-width: 40rem;
	font-size: 1.15rem;
	line-height: 1.6;
	opacity: 0.8;
}

/* Row Hero : taille (h1 à h6, p) et épaisseur (100 à 900) choisies pour le titre et la description, après leurs styles de base ci-dessus pour les remplacer */
.bc-hero .bc-size-h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; }
.bc-hero .bc-size-h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; }
.bc-hero .bc-size-h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.bc-hero .bc-size-h4 { font-size: 1.5rem; line-height: 1.25; }
.bc-hero .bc-size-h5 { font-size: 1.25rem; line-height: 1.3; }
.bc-hero .bc-size-h6 { font-size: 1rem; line-height: 1.4; }
.bc-hero .bc-size-p { font-size: 1.15rem; line-height: 1.6; }
.bc-hero .bc-weight-100 { font-weight: 100; }
.bc-hero .bc-weight-200 { font-weight: 200; }
.bc-hero .bc-weight-300 { font-weight: 300; }
.bc-hero .bc-weight-400 { font-weight: 400; }
.bc-hero .bc-weight-500 { font-weight: 500; }
.bc-hero .bc-weight-600 { font-weight: 600; }
.bc-hero .bc-weight-700 { font-weight: 700; }
.bc-hero .bc-weight-800 { font-weight: 800; }
.bc-hero .bc-weight-900 { font-weight: 900; }

.bc-hero .bc-text p {
	margin: 0 0 0.5rem;
}

.bc-hero .bc-text p:last-child {
	margin-bottom: 0;
}

.bc-actions {
	margin-top: 0.5rem;
}

/* Éditeur : champs vides (titre actif, titre, description) avec leur texte indicatif visible, y compris sur un fond foncé */
.bc-hero .row-text {
	position: relative;
	width: 100%;
	min-height: 1.2em;
}

.bc-hero .row-text.is-empty::before {
	content: attr(data-placeholder);
	position: absolute;
	inset: 0 0 auto 0;
	text-align: inherit;
	color: currentColor;
	opacity: 0.4;
	pointer-events: none;
}

.bc-hero .row-text.bc-text.is-empty > p {
	margin: 0;
}

/* Fil d'Ariane : le titre actif vide montre le nom de la page, à pleine opacité comme sur le site (seuls le titre et la description d'un hero ont un texte indicatif estompé) */
.bc-hero:not(.bc-hero--badge) .row-text.bc-eyebrow.is-empty::before,
.bc-hero .row-text.bc-page-title.is-empty::before {
	opacity: 1;
}

/* Row Hero : titre actif de l'en-tête de page (couleur réglable, celle du thème par défaut) */
.bc-hero .bc-eyebrow.bc-page-title {
	color: var(--bc-active, var(--theme-primary, currentColor));
}

/* Row Hero : contenu plus aéré que le Fil d'Ariane (espace entre les éléments, description, boutons et points forts) */
.bc-hero--badge {
	gap: 1.5rem;
}

.bc-hero--badge .bc-text {
	line-height: 1.7;
}

.bc-hero--badge .bc-actions {
	margin-top: 0.75rem;
}

.bc-hero--badge .bc-features {
	margin-top: 1rem;
}

/* Row Hero : le petit libellé est dans une pastille (icône puis texte) teintée de sa couleur (fond à 18 %, contour à 30 %) */
.bc-hero--badge .bc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--bc-eyebrow, var(--theme-primary, currentColor)) 30%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--bc-eyebrow, var(--theme-primary, currentColor)) 18%, transparent);
	color: var(--bc-eyebrow, var(--theme-primary, currentColor));
}

.bc-hero--badge .bc-badge .bc-eyebrow {
	width: auto;
}

.bc-hero--badge .row-text.bc-eyebrow {
	min-width: 8em;
}

.bc-hero--badge .row-text.bc-eyebrow.is-empty::before {
	inset: 0 auto auto 0;
	white-space: nowrap;
}

/* Row Hero : boutons côte à côte, icône devant le texte */
.bc-hero--badge .bc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.bc-hero--badge .bc-actions .site-btn,
.bc-hero--badge .bc-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

/* Éditeur : un bouton sans destination n'est pas affiché sur le site, il est estompé ici */
.bc-hero--badge .bc-actions .is-nolink {
	opacity: 0.45;
}

/* Row Hero : points forts (icône puis texte) sous les boutons */
.bc-features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	padding: 0;
	margin: 0.5rem 0 0;
	list-style: none;
	font-size: 1.05rem;
	opacity: 0.85;
}

/* Points forts en bloc : les uns sous les autres */
.bc-features--block {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.6rem;
}

.row-align-center .bc-features--block,
.r-align-center .bc-features--block {
	align-items: center;
}

.row-align-right .bc-features--block,
.r-align-right .bc-features--block {
	align-items: flex-end;
}

.bc-feature {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.bc-feature > i {
	color: var(--bc-feature-icon, var(--bc-eyebrow, var(--theme-primary, currentColor)));
}

/* Taille des icônes des points forts (moyenne : celle du texte) */
.bc-features--icon-sm .bc-feature > i {
	font-size: 0.85em;
}

.bc-features--icon-lg .bc-feature > i {
	font-size: 1.8em;
}

.bc-features--icon-xl .bc-feature > i {
	font-size: 2.6em;
}

/* Éditeur : un champ par point fort, de la largeur de son texte (comme sur le site, les uns à côté des autres) ; poignée et corbeille flottent au survol */
.bc-hero .bc-features-edit {
	width: 100%;
}

.bc-hero .bc-features-edit .bc-features {
	row-gap: 0.75rem;
}

.bc-hero .bc-features-edit .bc-feature.row-list-item {
	position: relative;
	padding: 0;
	gap: 1rem;
}

.bc-feature-field {
	display: inline-grid;
}

.bc-feature-field::after {
	content: attr(data-text) " ";
	grid-area: 1 / 1;
	visibility: hidden;
	white-space: pre;
	min-width: 4rem;
}

.bc-hero .bc-features-edit .row-list-input {
	grid-area: 1 / 1;
	/* Largeur nulle pour que le champ ne compte pas dans celle de la cellule (le texte caché de data-text la donne), puis tout l'espace de la cellule */
	width: 0;
	min-width: 100%;
}

.bc-hero .bc-features-edit .row-list-input::placeholder {
	color: currentColor;
	opacity: 0.4;
}

.bc-hero .bc-features-edit .row-list-grip,
.bc-hero .bc-features-edit .row-list-remove {
	position: absolute;
	top: -1.1rem;
	padding: 0 0.35rem;
	border-radius: 0.5rem;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 0.7rem;
	line-height: 1.4rem;
}

.bc-hero .bc-features-edit .row-list-grip {
	right: 1.7rem;
}

.bc-hero .bc-features-edit .row-list-remove {
	right: 0;
}

/* Row Installer l'application : masquée tant que l'installation n'est pas possible (pwa-prompts.js retire la classe), toujours montrée dans l'aperçu du manager */
.r-install-pending {
	display: none !important;
}

/* Toute la card est cliquable (pwa-prompts.js) */
.r-type-install:not(.r-install-pending) {
	cursor: pointer;
}
