/* Bandeau d'offre temporaire, sous la bannière brune (inc/offre.php). Rouge « récolter » de la charte, texte crème. */
.sr-offre {
	display: flex;
	align-items: center;
	min-height: 72px;
	background: var(--sc-red, #b21c2d);
	color: var(--sc-cream, #fdf6ea);
	font-family: var(--sc-font, Figtree, sans-serif);
	overflow: hidden;
}
.sr-offre[hidden] { display: none; }

.sr-offre__piste {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.sr-offre__defile {
	display: flex;
	align-items: center;
	width: max-content;
	animation: sr-offre-defile 60s linear infinite;
}
.sr-offre:hover .sr-offre__defile,
.sr-offre:focus-within .sr-offre__defile,
.sr-offre.is-paused .sr-offre__defile { animation-play-state: paused; }

@keyframes sr-offre-defile {
	to { transform: translateX(-50%); }
}

.sr-offre__msg {
	display: inline-flex;
	align-items: baseline;
	gap: var(--sc-space-3, 12px);
	white-space: nowrap;
}
.sr-offre__texte {
	font-family: var(--sc-display, "Bricolage Grotesque", sans-serif);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	letter-spacing: -0.8px;
}
.sr-offre__code b {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border: 1.5px dashed currentColor;
	border-radius: var(--sc-r-xs, 4px);
	font-weight: 700;
	letter-spacing: .5px;
}
.sr-offre__code,
.sr-offre__precision { font-size: 17px; }
.sr-offre__precision { opacity: .9; }
.sr-offre__sep { font-size: 12px; opacity: .7; }
/* Marge à droite de chaque élément (pas de gap) : les deux moitiés de la piste font exactement la même largeur. */
.sr-offre__defile > * { margin-right: var(--sc-space-5, 24px); }

.sr-offre__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: var(--sc-space-2, 8px);
	padding: 0 var(--sc-space-3, 12px) 0 var(--sc-space-2, 8px);
}
.sr-offre__lien {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--sc-r-pill, 999px);
	background: var(--sc-cream, #fdf6ea);
	color: var(--sc-red, #b21c2d) !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.sr-offre__lien:hover { background: #fff; }
.sr-offre__pause {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.sr-offre__pause svg { fill: currentColor; }
.sr-offre__ico-play { display: none; }
.sr-offre.is-paused .sr-offre__ico-pause { display: none; }
.sr-offre.is-paused .sr-offre__ico-play { display: inline; }
.sr-offre :is(a, button):focus-visible { outline: 2px solid var(--sc-cream, #fdf6ea); outline-offset: 2px; }

@media (max-width: 600px) {
	.sr-offre { min-height: 60px; }
	.sr-offre__texte { font-size: 22px; }
	.sr-offre__code,
	.sr-offre__precision { font-size: 15px; }
	.sr-offre__defile { animation-duration: 40s; }
	.sr-offre__lien { min-height: 40px; padding: 0 12px; font-size: 14px; }
	.sr-offre__pause { width: 40px; height: 40px; }
}

/* Pendant l'offre, la barre du haut passe du brun au rouge (le code reste en jaune). */
html.sr-offre-active body.sr-charte .sr-topbar { background: var(--sc-red, #b21c2d) !important; }

/* Sans animation : le premier message, fixe, sans bouton pause. */
@media (prefers-reduced-motion: reduce) {
	.sr-offre__defile { animation: none; width: auto; padding-left: var(--sc-space-4, 16px); }
	.sr-offre__defile > :not(:first-child) { display: none; }
	.sr-offre__msg { white-space: normal; flex-wrap: wrap; }
	.sr-offre__pause { display: none; }
	.sr-offre__piste { mask-image: none; }
}
/* Le jaune n'est pas assez contrasté sur le rouge : code en crème souligné. */
html.sr-offre-active body.sr-charte .sr-topbar :is(strong, b) { color: var(--sc-cream, #fdf6ea) !important; text-decoration: underline; text-underline-offset: 3px; }

/* Code de l'offre dans le premier écran de l'accueil (bande brune). */
.sr-offre-code { margin: var(--sc-space-4, 16px) 0 0; font-size: 18px; color: var(--sc-cream, #fdf6ea); }
.sr-offre-code b {
	display: inline-block;
	margin-left: 6px;
	padding: 4px 12px;
	border: 2px dashed var(--sc-attendre, #f0c96a);
	border-radius: var(--sc-r-sm, 8px);
	color: var(--sc-attendre, #f0c96a);
	font-family: var(--sc-display, "Bricolage Grotesque", sans-serif);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .5px;
}

/* Carrousel du premier écran de l'accueil pendant l'offre : les deux écrans dans la même case (pas de saut de hauteur). */
.sr-offre-slides { display: grid; }
.sr-offre-slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s;
}
.sr-offre-slide > .sr-bande__in { width: 100%; }
/* L'écran qui part s'efface d'abord, le nouveau apparaît ensuite : les deux textes ne se chevauchent pas. */
.sr-offre-slide.is-active { opacity: 1; visibility: visible; transition: opacity .4s ease .25s, visibility 0s; }

/* Commandes alignées sur la colonne de texte, juste sous le contenu. */
.sr-offre-slides__nav {
	grid-area: 2 / 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: calc(-1 * var(--sc-space-5, 24px)) auto 0;
	padding: 0 var(--sc-space-8, 48px) var(--sc-space-7, 40px);
	display: flex;
	align-items: center;
	gap: var(--sc-space-3, 12px);
}
.sr-offre-slides__fleche {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--b-creme-20, rgba(253, 246, 234, .2));
	border-radius: 50%;
	background: transparent;
	color: var(--sc-cream, #fdf6ea);
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.sr-offre-slides__fleche svg { width: 18px; height: 18px; }
.sr-offre-slides__fleche:hover { border-color: var(--sc-cream, #fdf6ea); background: var(--sc-cream, #fdf6ea); color: var(--sc-ink, #2a1a12); }
.sr-offre-slides__fleche:focus-visible { outline: 2px solid var(--sc-cream, #fdf6ea); outline-offset: 3px; }
.sr-offre-slides__points { display: inline-flex; gap: 6px; margin-left: var(--sc-space-2, 8px); }
.sr-offre-slides__points i { width: 8px; height: 8px; border-radius: 99px; background: var(--sc-cream, #fdf6ea); opacity: .3; transition: opacity .3s, width .3s, background-color .3s; }
.sr-offre-slides__points i.is-active { width: 24px; opacity: 1; background: var(--sc-red, #b21c2d); }

/* Téléphone et tablette : un seul écran affiché à la fois (hauteur ajustée, pas de grand vide), sans défilement automatique. */
@media (max-width: 1020px) {
	.sr-offre-slide:not(.is-active) { display: none; }
	.sr-offre-slide.is-active { transition: none; }
	.sr-offre-slides__nav { margin-top: 0; padding: 0 var(--sc-space-4, 16px) var(--sc-space-6, 32px); }
}
@media (prefers-reduced-motion: reduce) {
	.sr-offre-slide, .sr-offre-slide.is-active { transition: none; }
}
