/* Override placeholder background assets to the bundled SVGs.
   main.css stays pristine; swap these for real bg.jpg / overlay.png later. */

#bg:before {
	background-image:
		linear-gradient(to top, rgba(19, 21, 25, 0.5), rgba(19, 21, 25, 0.5)),
		url("../../images/overlay.svg");
}

#bg:after {
	background-image: url("../../images/bg.svg");
}

/* .image hover overlay also points at the placeholder overlay. */
.image:before {
	background-image: url("../../images/overlay.svg");
}

/* Cross-page fade (View Transitions API, driven by the router). */
@keyframes bacariq-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes bacariq-fade-out {
	from { opacity: 1; }
	to   { opacity: 0; }
}
/* Old page fades out first, then the new page fades in — sequential, not a
   simultaneous cross-fade, so the transition reads clearly between pages. */
::view-transition-old(root) {
	animation: bacariq-fade-out 0.8s ease both;
}
::view-transition-new(root) {
	animation: bacariq-fade-in 0.8s ease 0.8s both;
}

/* The close button is an <a> (router link), so neutralize the dotted link underline. */
#main article .close {
	border-bottom: 0;
}

/* Material Icons used in the Produits page (home button + feature table). */
.material-icons {
	vertical-align: middle;
}

/* Feature table icons keep a consistent size/tint. */
#main .table-wrapper .feat-icon {
	font-size: 32px;
	color: #ffffff;
	opacity: 0.85;
}

/* Le .logo est un cercle prévu pour une icône de police ; on y met une <img>,
   donc on la centre proprement (horizontal + vertical) dans le cercle. */
#header .logo {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
}
#header .logo img {
	display: block;
	width: 90%;
	height: 90%;
	object-fit: contain;
}

/* Menu Produits : chaque cellule a la même largeur fixe et son contenu est
   centré, pour que tous les rectangles soient identiques et bien alignés. */
#header nav ul li {
	display: flex;
}
#header nav ul li a {
	width: 9rem;
	min-width: 0;
	padding: 0;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
