/* ==========================================================================
   Bannière d'accueil — ReparePC.fr
   --------------------------------------------------------------------------
   Diaporama en fondu sans JavaScript, et les deux actions qui font vivre
   l'entreprise mises au premier plan : appeler, ou demander un rappel.
   ========================================================================== */

/* ---------- Diaporama ---------- */

.hero-fond {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: -1;
	background: #14102c;
}

/* Le voile assombri : sans lui, le texte blanc passe sur les zones claires
   des photographies. Il remplace l'ancien .pos-slider::before. */
.hero-fond::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(16, 12, 44, 0.78) 0%, rgba(26, 26, 58, 0.68) 55%, rgba(16, 12, 44, 0.82) 100%);
}

.hero-fond__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	/* Trois images, 21 s de cycle : chacune reste 5 s puis se fond en 2 s. */
	animation: heroFondu 21s infinite;
	will-change: opacity;
}

/* Délai négatif : la première image démarre déjà « ouverte », sans le
   fondu d'entrée qui la laisserait invisible au premier rendu. */
.hero-fond__img:nth-child(1) {
	animation-delay: -1s;
}

.hero-fond__img:nth-child(2) {
	animation-delay: 6s;
}

.hero-fond__img:nth-child(3) {
	animation-delay: 13s;
}

@keyframes heroFondu {
	0% {
		opacity: 0;
	}
	4% {
		opacity: 1;
	}
	33.33% {
		opacity: 1;
	}
	37.33% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

/* ---------- Actions ---------- */

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: 38px;
}

.hero-btn {
	transform: translateY(0);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 30px;
	border-radius: 12px;
	font: 600 16.5px/1 "Poppins", sans-serif;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		background-color 0.22s ease,
		color 0.22s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
	text-decoration: none;
	transform: translateY(-2px);
}

.hero-btn:active {
	transform: translateY(0);
}

/* Action principale : le numéro, en toutes lettres. Sur un site de
   dépannage, l'appel reste la conversion qui compte. */
.hero-btn--appel {
	background-image: linear-gradient(100deg, #7121ff 0%, #3f50f6 62%, #21d4fd 140%);
	color: #fff;
	box-shadow: 0 14px 34px -14px rgba(88, 40, 246, 0.95);
}

.hero-btn--appel:hover,
.hero-btn--appel:focus-visible {
	color: #fff;
	box-shadow: 0 20px 40px -14px rgba(88, 40, 246, 1);
}

/* Action secondaire, pleine et blanche : sur une photographie, un bouton
   translucide devient illisible dès que l'image s'éclaircit. */
.hero-btn--rappel {
	background: #fff;
	color: #5f2eec;
	box-shadow: 0 14px 34px -18px rgba(8, 4, 40, 0.9);
}

.hero-btn--rappel:hover,
.hero-btn--rappel:focus-visible {
	background: #f4f1ff;
	color: #4a1fd0;
}

/* ---------- Note Google ---------- */

.hero-avis {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 8px 16px 8px 8px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: 500 14px/1 "Poppins", sans-serif;
	text-decoration: none;
	transition:
		background-color 0.22s ease,
		border-color 0.22s ease;
}

.hero-avis:hover,
.hero-avis:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	text-decoration: none;
}

.hero-avis__note {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 30px;
	padding: 0 8px;
	border-radius: 999px;
	background: #fff;
	color: #1a1240;
	font-weight: 700;
	font-size: 15px;
}

.hero-avis__etoiles {
	display: inline-flex;
	gap: 2px;
	fill: #fbbc04;
}

.hero-avis__texte {
	opacity: 0.92;
}

/* ---------- Invitation à défiler ---------- */

.hero-descendre {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: rgba(255, 255, 255, 0.85);
	font: 500 13px/1 "Poppins", sans-serif;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: color 0.22s ease;
}

.hero-descendre:hover,
.hero-descendre:focus-visible {
	color: #fff;
	text-decoration: none;
}

.hero-descendre svg {
	animation: heroFleche 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes heroFleche {
	0%,
	60%,
	100% {
		transform: translateY(0);
		opacity: 0.75;
	}
	30% {
		transform: translateY(6px);
		opacity: 1;
	}
}

/* ---------- Défilement doux, sans JavaScript ---------- */

html {
	scroll-behavior: smooth;
	/* La barre flottante ne doit pas recouvrir la section visée. */
	scroll-padding-top: calc(var(--rp-nav-space, 108px) + 16px);
}

/* ---------- Écrans étroits ---------- */

@media screen and (max-width: 767px) {
	.hero-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 30px;
		padding: 0 8px;
	}

	.hero-btn {
		justify-content: center;
		height: 54px;
		padding: 0 18px;
		font-size: 16px;
	}

	/* L'ancienne feuille mobile impose 36 px sous chaque lien de la
	   bannière. Deux classes sont nécessaires pour la neutraliser :
	   l'espacement est désormais celui du conteneur. */
	.pos-banner-text .hero-btn,
	.pos-banner-text .hero-avis {
		margin-bottom: 0;
	}

	.hero-avis {
		margin-top: 22px;
	}

	.hero-descendre {
		display: none;
	}
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	/* Une seule image, fixe : le fondu automatique est exactement le genre
	   d'animation que ce réglage vise. */
	.hero-fond__img {
		animation: none;
		opacity: 0;
	}

	.hero-fond__img:nth-child(1) {
		opacity: 1;
	}

	.hero-descendre svg {
		animation: none;
	}

	.hero-btn {
		transition: none;
	}
}

/* Voir style.css : le dégradé doit être calé sur la bordure pour ne pas
   laisser apparaître la reprise du motif sur les bords. */
.hero-btn--appel {
	background-origin: border-box;
	background-repeat: no-repeat;
}
