/*
Theme Name: Lotus Ambulant
Description: Thème du stand de street food Lotus Ambulant — couleurs de la remorque (carrosserie anthracite, bordures jaune d’or, rouge vermillon).
Version: 1.0.4
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: lotus-ambulant
*/

/* Cadre jaune arrondi, comme les bordures de la remorque */
.is-style-remorque {
	border: 10px solid var(--wp--preset--color--or);
	border-radius: 48px;
	overflow: hidden;
}
.is-style-remorque img { display: block; }

/* Bande défilante */
.lotus-bande {
	overflow: hidden;
	white-space: nowrap;
	border-top: 4px solid var(--wp--preset--color--trait);
	border-bottom: 4px solid var(--wp--preset--color--trait);
}
.lotus-bande p {
	display: inline-block;
	margin: 0;
	animation: lotus-defile 30s linear infinite;
}
/* Le texte est écrit deux fois : un décalage de -50 % boucle sans à-coup */
@keyframes lotus-defile {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.lotus-bande p { animation: none; }
}

/* Sections bord à bord : pas d’espace entre en-tête, contenu et pied de page */
.wp-site-blocks > * { margin-block-start: 0; }

/* En-tête collant (c’est l’élément <header> qui colle, pas le groupe qu’il contient) */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.lotus-entete { border-bottom: 4px solid var(--wp--preset--color--or); }
.lotus-entete .wp-block-site-logo img { border-radius: 50%; }

/* Cartes du menu */
.lotus-carte {
	border: 3px solid var(--wp--preset--color--or);
	border-radius: 28px;
	height: 100%;
}
.lotus-carte h3 { margin-top: 0; }

/* Étapes numérotées */
.lotus-etape .lotus-numero {
	font-family: var(--wp--preset--font-family--titre);
	font-size: 4rem;
	line-height: 1;
	color: var(--wp--preset--color--vermillon);
	margin: 0;
}

/* Titre rouge sur fond clair, comme le lettrage de la remorque */
.has-papier-background-color h2,
.has-creme-background-color h2 { color: var(--wp--preset--color--vermillon); }
.has-papier-background-color,
.has-creme-background-color { color: var(--wp--preset--color--trait); }
.has-papier-background-color a:not(.wp-element-button),
.has-creme-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--vermillon); }

.wp-block-cover h1 { text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55); }

/* Bouton secondaire */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 3px solid var(--wp--preset--color--or);
	color: var(--wp--preset--color--or);
	background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--or);
	color: var(--wp--preset--color--trait);
}

/* Texte à compléter, bien visible pour l’éditrice */
.lotus-a-completer {
	background: var(--wp--preset--color--or);
	color: var(--wp--preset--color--trait);
	padding: 0 0.3em;
	border-radius: 4px;
}

/* Tableaux du menu */
.wp-block-table td { border-color: rgba(242, 183, 5, 0.3); border-width: 0 0 1px 0; padding: 0.9em 0.4em; }
.wp-block-table td:last-child { white-space: nowrap; width: 1%; color: var(--wp--preset--color--or); font-weight: 700; }
.wp-block-cover h1 { color: var(--wp--preset--color--or); }
.wp-block-cover h1.has-vermillon-color { color: var(--wp--preset--color--vermillon); }

/* Pastille « Notre spécialité » */
.lotus-specialite {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.1em 0.6em;
	border-radius: 999px;
	background: var(--wp--preset--color--vermillon);
	color: var(--wp--preset--color--papier);
	font-family: var(--wp--preset--font-family--titre);
	font-size: 0.8em;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	vertical-align: middle;
}

/* Pictogramme « sans gluten » */
.lotus-sans-gluten {
	display: inline-block;
	width: 1.35em;
	height: 1.35em;
	margin-left: 0.3em;
	vertical-align: -0.3em;
	background: url(assets/icons/sans-gluten.svg) center / contain no-repeat;
}
