:root {
  --primary: #06234d; /* bleu foncé (logo) */
  --accent: #2ea1ff; /* bleu clair */
  --bg: #f5f6f7;
  --text: #0b2238;
  --container-padding-mobile: 5%;
  --container-padding-desktop: 25%;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.page-container {
  min-height: 100vh; /* toute la hauteur visible */
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex: 1; /* pousse le footer vers le bas */
}

/* brand */
.brand-logo {
  height: 36px;
  max-height: 40px;
}
.brand-text {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* Mobile-first content container */
.site-content {
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  text-align: center;
}

/* Controls */
.ui-controls {
  bottom: 1rem;
  right: 1rem;
  gap: 0.6rem;
  z-index: 9999;
}

.ui-controls button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.ui-controls button:hover {
  background: var(--accent);
}

/* hero */
.hero h1 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.hero p {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

/* product card */
.product-card {
  background: #fff;
  border-radius: 10px;
  text-align: justify;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

.product-thumb {
  max-width: 220px;
  border-radius: 8px;
  border: 2px solid var(--primary);
}

/* buttons */
.btn-primary {
  background: linear-gradient(180deg, var(--primary), #052043);
  border: none;
  box-shadow: none;
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

/* form */
.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.15rem rgba(46, 161, 255, 0.15);
  border-color: var(--accent);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.product-links .btn-browser {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #4caf50;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.product-links .btn-browser:hover {
  background-color: #45a049;
}

.product-links img {
  display: inline-block;
  height: 70px; /* ajustable selon design */
  width: 180px; /* ajustable selon design */
}

/* Desktop adjustments (nav horizontal, bigger side margins) */
@media (min-width: 992px) {
  .site-content {
    text-align: center;
  }

  .navbar .navbar-nav {
    gap: 1rem;
  }
  .navbar .nav-link {
    padding: 0.5rem 1rem;
    color: var(--primary);
    font-weight: 600;
  }
  .navbar .nav-link.active {
    color: var(--accent);
  }

  /* center main text in wider layout and constrain width visually */
  .site-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Accessibility small tweaks */
a:focus,
button:focus {
  outline: 3px solid rgba(46, 161, 255, 0.18);
  outline-offset: 2px;
}

/* ==== FOOTER ==== */
.footer {
  background: var(--primary);
  color: #fff;
  padding-top: 2rem;
  padding-bottom: 1rem;
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  padding-left: var(--container-padding-mobile);
  padding-right: var(--container-padding-mobile);
}

/* Titles */
.footer-title {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

/* Socials */
.social-icons {
  display: flex;
  gap: 0.75rem;
}
.social-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}
.social-icon:hover {
  transform: scale(1.1);
}

/* Divider layout for desktop */
@media (min-width: 992px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 2rem;
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }

  .footer-section {
    flex: 1;
    text-align: left;
    position: relative;
    padding: 0 1rem;
  }

  /* vertical divider between sections */
  .footer-section:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Bottom copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}
