/* Hero — 1394 × 868 à 1440 px, coins 10 px, retrait --frame. */
.bq-hero {
	/* Plein écran : hauteur de la fenêtre moins le retrait haut et bas. */
	--hero-h: max(34rem, calc(100svh - 2 * var(--frame, 1.5rem)));
	--hero-voile: 45%;
	position: relative;
	isolation: isolate;
	display: flex;
	min-height: var(--hero-h);
	margin-inline: var(--frame);
	border-radius: var(--r-md);
	overflow: hidden;
	background-color: var(--dark); /* sans image : fond anthracite, texte lisible */
	color: var(--fg);
}
/* Sélecteur renforcé : « .elementor img { height: auto } » l'emportait, la
   photo gardait son ratio et laissait une bande vide en bas du hero. */
.bq-hero .bq-hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Voile : plus dense en bas (texte de présentation) et au centre (titre). */
.bq-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--ink) var(--hero-voile), transparent) 0%, transparent 70%),
		linear-gradient(to top, color-mix(in srgb, var(--ink) var(--hero-voile), transparent), transparent 55%);
}
.bq-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--sp-12);
	width: 100%;
	padding: calc(var(--header-h) + var(--sp-8)) clamp(1.25rem, 4.5vw, 4.4rem) clamp(1.5rem, 3.5vw, 3rem);
}
.bq-hero__titles { margin-block: auto; text-align: center; }
.bq-hero__title {
	font-size: var(--fs-hero);
	font-weight: var(--fw-medium);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .01em;
}
.bq-hero__sub {
	margin-top: var(--sp-6);
	font-size: var(--fs-hero-sub);
	font-weight: var(--fw-light);
	line-height: 1.05;
	text-transform: uppercase;
}
.bq-hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-8); }
.bq-hero__lead { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
.bq-hero__accroche { max-width: 26.25rem; font-size: clamp(1.375rem, 2.1vw, 1.875rem); font-weight: var(--fw-medium); line-height: 1.2; }
.bq-hero__text { max-width: 33rem; font-size: var(--fs-sm); line-height: 1.3; }
.bq-hero__text strong { font-weight: var(--fw-medium); }
.bq-hero .btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-dot: var(--brand); }
@media (max-width: 47.5em) {
	.bq-hero__foot { flex-direction: column; align-items: flex-start; } /* accroche + bouton d'abord, puis le texte */
}

/* =============================================================================
   0.7.0 — DIAPORAMA (photos / vidéos) + OUVERTURE RETRAVAILLÉE
   ========================================================================== */
.bq-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bq-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1); }
.bq-hero__slide.is-active { opacity: 1; }
.bq-hero .bq-hero__slide .bq-hero__img { z-index: auto; }
/* Lent zoom « Ken Burns » sur la diapositive en cours (et pendant son fondu
   de sortie : pas d'à-coup). */
@media (prefers-reduced-motion: no-preference) {
	.bq-hero--diapo .bq-hero__slide.is-kb { animation: bq-kb calc(var(--diapo-duree, 7s) + 1.4s) linear both; }
}
@keyframes bq-kb { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Navigation : un trait par visuel qui se remplit pendant son affichage,
   puis un petit bouton pause (WCAG 2.2.2). */
.bq-hero__nav {
	position: absolute;
	left: 50%;
	bottom: clamp(1.5rem, 3.5vw, 3rem);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: .375rem;
	translate: -50% 0;
}
.bq-hero__dot { display: grid; align-items: center; width: 2.75rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.bq-hero__dot span { position: relative; display: block; height: 2px; border-radius: 2px; overflow: hidden; background-color: color-mix(in srgb, var(--paper) 35%, transparent); transition: background-color .25s ease; }
.bq-hero__dot span::after { content: ''; position: absolute; inset: 0; background-color: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.bq-hero__dot:hover span { background-color: color-mix(in srgb, var(--paper) 60%, transparent); }
.bq-hero__dot:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 3px; }
.bq-hero__pause { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-left: .375rem; padding: 0; border: 0; border-radius: 50%; background-color: color-mix(in srgb, var(--paper) 18%, transparent); color: var(--paper); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bq-hero__pause::before { content: ''; width: .5rem; height: .625rem; border-inline: .1875rem solid currentColor; }
.bq-hero__pause[aria-pressed='true']::before { width: 0; height: 0; margin-left: .15rem; border-block: .3rem solid transparent; border-inline: .45rem solid currentColor; border-right-width: 0; }
@media (max-width: 47.5em) {
	.bq-hero__nav { top: calc(var(--header-h, 5rem) + .75rem); bottom: auto; }
}

/* --- OUVERTURE : une vraie mise en scène, en 3 temps ------------------------
   1. le titre se lève lettre à lettre, en sortant d'un léger flou ;
   2. le sous-titre glisse ligne par ligne derrière un masque ;
   3. accroche, bouton puis texte de présentation montent en cascade.
   Tout attend la levée du loader (classe .bq-hold). */
.bq-hero__line { display: block; overflow: clip; padding-block: .08em; margin-block: -.08em; }
.bq-hero__line > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
	.bq-hero .bq-hero__char {
		animation: bq-hero-char 1.15s cubic-bezier(.16, 1, .3, 1) backwards;
		animation-delay: calc(.1s + var(--c, 0) * 45ms);
	}
	.bq-hero .bq-hero__sub { animation: none; }
	.bq-hero .bq-hero__line > span { animation: bq-hero-line 1.05s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(.55s + var(--l, 0) * .12s); }
	.bq-hero .bq-hero__foot > * { animation: none; }
	.bq-hero .bq-hero__lead > *,
	.bq-hero .bq-hero__text > * { animation: bq-hero-up .95s cubic-bezier(.16, 1, .3, 1) backwards; }
	.bq-hero .bq-hero__lead > :nth-child(1) { animation-delay: .95s; }
	.bq-hero .bq-hero__lead > :nth-child(2) { animation-delay: 1.07s; }
	.bq-hero .bq-hero__text > :nth-child(1) { animation-delay: 1.12s; }
	.bq-hero .bq-hero__text > :nth-child(2) { animation-delay: 1.22s; }
	.bq-hero .bq-hero__nav { animation: bq-hero-fade .8s 1.45s ease backwards; }
}
@keyframes bq-hero-char {
	from { opacity: 0; transform: translateY(85%) rotate(4deg); filter: blur(8px); }
	55%  { filter: blur(0); }
}
@keyframes bq-hero-line { from { transform: translateY(110%); } }
@keyframes bq-hero-up   { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes bq-hero-fade { from { opacity: 0; } }
/* Loader : tout reste en attente tant que le voile n'est pas levé. */
.bq-hold .bq-hero *,
.bq-hold .bq-hero *::after { animation-play-state: paused !important; }

/* =============================================================================
   0.7.1 — LISIBILITÉ DU TEXTE SUR LE DIAPORAMA, dans le langage du site
   1. Voile « sculpté » dans l'anthracite bleuté de la section Besoins
      (#1E282E) : plus dense derrière le titre, en haut (menu) et en bas
      (accroche et texte), la photo reste lumineuse ailleurs.
   2. Ombre portée très diffuse sous le titre et le sous-titre : invisible en
      tant que telle, elle détache les lettres des zones claires.
   3. Texte de présentation posé sur une plaque de VERRE (même recette que le
      panneau « Vos besoins d'innovation ») : le petit texte reste lisible
      quelle que soit la photo.
   ========================================================================== */
.bq-hero { --hero-voile-c: #1e282e; }
.bq-hero::before {
	background:
		radial-gradient(ellipse 60% 45% at 50% 47%, color-mix(in srgb, var(--hero-voile-c) 55%, transparent) 0%, transparent 70%),
		linear-gradient(to top, color-mix(in srgb, var(--hero-voile-c) 78%, transparent) 0%, color-mix(in srgb, var(--hero-voile-c) 35%, transparent) 30%, transparent 55%),
		linear-gradient(to bottom, color-mix(in srgb, var(--hero-voile-c) 45%, transparent) 0%, transparent 22%),
		color-mix(in srgb, var(--hero-voile-c) 12%, transparent);
}
.bq-hero__title,
.bq-hero__sub,
.bq-hero__accroche { text-shadow: 0 2px 28px color-mix(in srgb, var(--hero-voile-c) 55%, transparent), 0 1px 3px color-mix(in srgb, var(--hero-voile-c) 35%, transparent); }
.bq-hero__text {
	padding: clamp(1rem, 1.6vw, 1.375rem) clamp(1.125rem, 1.8vw, 1.5rem);
	border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent);
	border-radius: var(--r-md);
	background-color: color-mix(in srgb, var(--hero-voile-c) 28%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 30%, transparent), 0 20px 40px -24px color-mix(in srgb, var(--ink) 60%, transparent);
}
.bq-hero__text p:last-child { margin-bottom: 0; }

/* 0.7.6 — Plaque de verre du texte de présentation RETIRÉE (demande client) :
   le texte reste lisible grâce au voile sculpté et à l'ombre diffuse. */
.bq-hero__text {
	padding: 0;
	border: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
	text-shadow: 0 1px 16px color-mix(in srgb, var(--hero-voile-c, #1e282e) 70%, transparent), 0 1px 3px color-mix(in srgb, var(--hero-voile-c, #1e282e) 45%, transparent);
}

/* 0.7.13 — Jusqu'à 80em, les puces du diaporama passent en haut (sous le
   menu) : en bas, elles chevauchaient le texte de présentation. */
@media (max-width: 80em) {
	.bq-hero__nav { top: calc(var(--header-h, 5rem) + .75rem); bottom: auto; }
}
