/*
 * HelloSmaak — raffinements globaux.
 * Les couleurs, typographies, marges et arrondis se règlent dans Elementor (Réglages du site).
 * Ce fichier ne contient que ce qu'Elementor ne sait pas exprimer : rendu du texte, états d'interaction,
 * et quelques classes utilitaires documentées ci-dessous (à saisir dans Avancé > Classes CSS).
 */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

::selection {
	background-color: var(--e-global-color-accent, #00cc33);
	color: var(--e-global-color-primary, #00092e);
}

.elementor-heading-title {
	text-wrap: pretty;
}

.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
	text-wrap: pretty;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-counter-number-wrapper {
	font-variant-numeric: tabular-nums;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--e-global-color-accent, #00cc33);
	outline-offset: 3px;
}

/* Images liées : le lien prend toute la largeur du widget pour que les réglages de largeur (100 %) s'appliquent. */
.elementor-widget-image a {
	display: block;
}

/* .bv-counter — compteur centré (libellé sur plusieurs lignes). */
.bv-counter .elementor-counter-title {
	text-align: center;
}

/* Boutons : transition douce et léger enfoncement au clic. */
.elementor-button {
	transition-property: background-color, color, border-color, box-shadow, transform;
	transition-duration: 0.3s, 0.3s, 0.3s, 0.3s, 0.15s;
	transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.elementor-button:active {
	transform: scale(0.96);
}

/*
 * .bv-photo — contour neutre de 1 px sur les photos (fond clair) ; .bv-photo--dark sur fond sombre.
 * Le contour suit les arrondis et ne modifie pas la mise en page.
 */
.bv-photo img {
	outline: 1px solid rgba(0, 0, 0, 0.1);
	outline-offset: -1px;
}

.bv-photo--dark img {
	outline-color: rgba(255, 255, 255, 0.1);
}

/* Zones cliquables d'au moins 40 × 40 px sur les petites icônes et liens. */
.elementor-social-icon,
.elementor-widget-icon .elementor-icon {
	position: relative;
}

.elementor-social-icon::after,
.elementor-widget-icon a.elementor-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 40px);
	height: max(100%, 40px);
	transform: translate(-50%, -50%);
}

.bv-filter .e-filter-item {
	padding-block: 10px;
}

@media (max-width: 767px) {
	.bv-filter .e-filter-item {
		max-width: none;
		white-space: nowrap;
	}
}

/* .bv-flush — supprime l'espacement automatique sous un widget posé à la racine de la page (ex. modèle suivi d'un bloc coloré). */
.elementor-widget.bv-flush:not(:last-child) {
	margin-block-end: 0;
}

/* .bv-scroll-x — rangée qui défile horizontalement sur mobile (photos du bloc « Résultat » d'une fiche projet). */
@media (max-width: 767px) {
	.bv-scroll-x {
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 37px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.bv-scroll-x::-webkit-scrollbar {
		display: none;
	}

	.bv-scroll-x > .e-con {
		scroll-snap-align: start;
	}
}

.bv-testimonials .swiper-pagination-bullet {
	position: relative;
}

.bv-testimonials .swiper-pagination-bullet::after {
	content: "";
	position: absolute;
	inset: -6px;
}

/* .bv-fill — diaporama (widget Slides, hauteur « 100% ») qui occupe toute la hauteur de sa colonne. */
.bv-fill .elementor-slides-wrapper {
	height: 100%;
}

.elementor-widget.bv-legal a {
	display: inline-block;
	padding-block: 6px;
}

/* Cartes projet : apparition décalée colonne par colonne. */
.e-loop-item:nth-child(3n + 2) .bv-card.animated {
	animation-delay: 0.1s;
}

.e-loop-item:nth-child(3n) .bv-card.animated {
	animation-delay: 0.2s;
}

/* Liens dans les blocs de coordonnées et de mentions : même couleur que le texte, vert au survol. */
.elementor-widget.bv-contact-links a,
.elementor-widget.bv-legal a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.elementor-widget.bv-contact-links a:hover,
.elementor-widget.bv-legal a:hover {
	color: var(--e-global-color-secondary, #00cc33);
}

.elementor-widget.bv-contact-links strong {
	font-weight: 700;
}

/* Formulaire de contact (.bv-form) : champ de pièce jointe et case de consentement. */
.bv-form .elementor-field-type-upload .elementor-field {
	width: auto;
	padding: 0;
	border: 0;
	color: var(--e-global-color-bvchamp, #8d8d8d);
	font-size: 14px;
}

.bv-form .elementor-field-type-upload .elementor-field::file-selector-button {
	margin-inline-end: 12px;
	padding: 5px 18px;
	border: 1px solid var(--e-global-color-bvchamp, #8d8d8d);
	border-radius: 0;
	background: transparent;
	color: var(--e-global-color-bvchamp, #8d8d8d);
	font: italic 400 15px/1.3 "Open Sans", sans-serif;
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.bv-form .elementor-field-type-upload .elementor-field:hover::file-selector-button {
	border-color: var(--e-global-color-primary, #00092e);
	color: var(--e-global-color-primary, #00092e);
}

.bv-form .elementor-field-type-acceptance .elementor-field-subgroup label {
	font-family: "Open Sans", sans-serif;
	font-style: italic;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.04em;
	color: var(--e-global-color-bvgrisfonce, #333);
}

.bv-form .elementor-field-type-acceptance input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin-inline-end: 10px;
	vertical-align: -3px;
	accent-color: var(--e-global-color-secondary, #00cc33);
}

.bv-form textarea.elementor-field {
	resize: vertical;
}

/* Mises en valeur dans les textes riches : .bv-caps-strong (gras en capitales), .bv-strong-montserrat (gras en Montserrat). */
.bv-caps-strong strong {
	text-transform: uppercase;
}

.bv-strong-montserrat strong {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
}

/* Menu du pied de page (.bv-footer-nav) sur mobile : deux colonnes lues de haut en bas, comme la maquette. */
@media (max-width: 767px) {
	.bv-footer-nav .elementor-nav-menu--main .elementor-nav-menu {
		display: grid;
		grid-auto-flow: column;
		grid-template-rows: repeat(2, auto);
		justify-content: center;
		justify-items: center;
		column-gap: 60px;
	}

	.bv-footer-nav .elementor-nav-menu--main .elementor-nav-menu::after {
		display: none;
	}
}

/* Menu principal : rubrique active en gras (sélecteur plus fort que la typographie globale du widget). */
.elementor .elementor-widget.bv-nav .elementor-nav-menu .elementor-item.elementor-item-active {
	font-weight: 700;
}

/* En-tête collant : ombre discrète une fois la page défilée (Elementor Pro > Effets de mouvement > Collant). */
.bv-header {
	transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.bv-header.elementor-sticky--effects {
	box-shadow: 0 1px 0 rgba(0, 9, 46, 0.06), 0 10px 30px -18px rgba(0, 9, 46, 0.35);
}

/*
 * .bv-card — carte projet (modèle de boucle).
 * Enfants attendus : .bv-card__media (image) et .bv-card__overlay (calque d'informations révélé au survol).
 * Le bouton de la carte porte la classe .bv-card__cta : son lien couvre toute la carte.
 */
.bv-card {
	isolation: isolate;
	overflow: hidden;
}

.bv-card__media,
.bv-card__media img {
	transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.bv-card__overlay {
	opacity: 0;
	transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bv-card__overlay > * {
	transform: translate3d(0, 14px, 0);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bv-card__overlay > :nth-child(2) { transition-delay: 0.04s; }
.bv-card__overlay > :nth-child(3) { transition-delay: 0.08s; }
.bv-card__overlay > :nth-child(4) { transition-delay: 0.12s; }

.bv-card__cta a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
	.bv-card:hover .bv-card__media img {
		transform: scale(1.04);
	}

	.bv-card:hover .bv-card__overlay,
	.bv-card:focus-within .bv-card__overlay {
		opacity: 1;
	}

	.bv-card:hover .bv-card__overlay > *,
	.bv-card:focus-within .bv-card__overlay > * {
		transform: none;
	}
}

.bv-card:focus-within .bv-card__overlay {
	opacity: 1;
}

.bv-card:focus-within .bv-card__overlay > * {
	transform: none;
}

/*
 * .bv-if-filled — bloc facultatif des fiches projet : il se masque tout seul quand aucun de ses champs
 * dynamiques (widgets portant la classe .bv-field) n'a de contenu. Jamais masqué dans l'éditeur.
 */
body:not(.elementor-editor-active) .bv-if-filled:not(:has(.bv-field :is(p, li, img))) {
	display: none;
}

/* .bv-prose — pages de texte long (mentions légales, confidentialité) : respiration des intertitres, liens soulignés. */
.bv-prose h2 {
	margin: 2.4em 0 0.8em;
}

.bv-prose h2:first-child {
	margin-top: 0;
}

.bv-prose a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.25s ease;
}

.bv-prose a:hover {
	color: var(--e-global-color-secondary, #00cc33);
}

/* .bv-list — liste à puces sobre (textes riches des fiches projet). */
.bv-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.9em;
}

.bv-list li::before {
	content: "•\00a0";
}

@media (prefers-reduced-motion: reduce) {
	.bv-card__media img,
	.bv-card__overlay,
	.bv-card__overlay > * {
		transition: none;
	}
}
