/* CSS commune du site medicappconnect.com : base, navigation, pied de page.
   Reliée aux pages qui contiennent toutes ces règles (fiches, articles, blog, catalogues, contact) ;
   tools/sitelib.py (with_site_css) les retire alors du <style> de la page. Une règle de la page l'emporte toujours. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans',Helvetica,Arial,sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246,249,252,.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,229,234,.6);
  padding: 14px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-back {
  font-size: .78rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all .2s;
  white-space: nowrap;
}

.nav-back:hover {
  color: var(--blue);
  border-color: var(--blue);
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: .88rem;
  transition: color .2s;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: .78rem;
}

.lang-switch a {
  padding: 5px 10px;
  text-decoration: none;
  color: var(--text-light);
  transition: all .2s;
  font-weight: 500;
}

.lang-switch a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch a.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.nav-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  transition: all .2s;
}

.nav-btn:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

footer {
  padding: 36px 24px 22px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}

footer .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-left {
  font-size: .78rem;
  color: var(--text-light);
}

.footer-left a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-left a:hover {
  color: var(--blue);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: .78rem;
  color: var(--text-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}
