@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Blue theme, smooth font rendering, and anisotropic button transitions */

:root {
  --brand-blue: #0d6efd; /* Bootstrap primary */
  --brand-blue-dark: #314056;
  --brand-blue-900: #141822;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

header h1 {
  font-size: 3rem;
}

/* Hero header */
.hero {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  background: url("../img/20250808_1547_Union des Commerçants Saison_remix_01k24yw3steh6s3h353r81534h.png") center/cover no-repeat fixed;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(11, 33, 87, 0.65) 0%,
      rgba(11, 33, 87, 0.55) 60%,
      rgba(11, 33, 87, 0.45) 100%
    ),
    radial-gradient(1200px 600px at 50% 20%, rgba(13, 110, 253, 0.25), transparent 60%);
}

.hero-logo {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--brand-blue-dark), var(--brand-blue-900));
}

/* Buttons – smooth transition with custom easing ("anisotropic" feel) */
.btn-primary {
  --bs-btn-bg: var(--brand-blue);
  --bs-btn-border-color: var(--brand-blue);
  --bs-btn-hover-bg: var(--brand-blue-dark);
  --bs-btn-hover-border-color: var(--brand-blue-dark);
  transition: transform 220ms cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 220ms cubic-bezier(0.19, 1, 0.22, 1),
    background-color 140ms ease-out, border-color 140ms ease-out;
  will-change: transform, box-shadow;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* Cards */
.card {
  border-radius: 0.75rem;
}

/* Accessibility tweaks */
:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.5);
  outline-offset: 2px;
}

/* Text stroke utilities for hero title */
.text-stroke-blue {
  color: #ffffff;
  -webkit-text-stroke: 2px var(--brand-blue-dark);
  /* Fallback stroke using multi-direction shadows */
  text-shadow:
    1px 0 0 var(--brand-blue-dark),
    -1px 0 0 var(--brand-blue-dark),
    0 1px 0 var(--brand-blue-dark),
    0 -1px 0 var(--brand-blue-dark),
    1px 1px 0 var(--brand-blue-dark),
    -1px -1px 0 var(--brand-blue-dark),
    1px -1px 0 var(--brand-blue-dark),
    -1px 1px 0 var(--brand-blue-dark);
}

.text-stroke-black {
  color: #ffffff;
  -webkit-text-stroke: 2px #000000;
  text-shadow:
    1px 0 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}
