/* Le contenu ne se déplace pas au cliquer-glisser. */
html, body {
  max-width: 100%;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
}
img, svg, video, canvas, picture {
  -webkit-user-drag: none;
  user-drag: none;
}
a {
  -webkit-user-drag: none;
}

/* SENAMI — chrome partagé (logo topbar + footer) */
.senami-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--emerald, #0e7463) !important;
  line-height: 1;
  white-space: nowrap;
}

.senami-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.senami-logo-word {
  font-family: "Fraunces", "DM Sans", Georgia, "Segoe UI", serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.045em;
  color: #0e7463;
  -webkit-text-fill-color: #0e7463;
  transition: filter 0.18s ease;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .senami-logo-word {
    background: linear-gradient(105deg, #0a5c4e 0%, #0e7463 45%, #1d7f6d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
@media (max-width: 900px) {
  .senami-logo-word {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #0e7463 !important;
    -webkit-text-fill-color: #0e7463 !important;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
  }
  body.dark .senami-logo-word {
    color: #5eead4 !important;
    -webkit-text-fill-color: #5eead4 !important;
  }
}

.senami-logo:hover .senami-logo-word {
  filter: brightness(1.08);
}

body.dark .senami-logo-word {
  background: linear-gradient(105deg, #5eead4 0%, #34d399 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.senami-site-footer .sf-brand .sf-logo .senami-logo-mark {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.senami-site-footer .sf-brand .sf-logo,
.senami-site-footer a.logo,
.senami-site-footer a.senami-logo {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  margin-right: 0 !important;
}

.senami-site-footer .sf-brand .sf-logo .senami-logo-word {
  font-size: 1.4rem;
  background: linear-gradient(105deg, #5eead4 0%, #34d399 55%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Footer unifié — priorité max pour écraser index.css / styles.css */
footer#senami-footer.senami-site-footer,
footer.senami-site-footer,
.senami-site-footer.footer {
  margin-top: auto !important;
  background: #0f1f1a !important;
  color: #c5d4ce !important;
  border-top: 1px solid rgba(0, 152, 121, 0.25) !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

footer#senami-footer.senami-site-footer .sf-inner,
.senami-site-footer .sf-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px 32px;
}

.senami-site-footer .sf-brand .sf-logo {
  margin-bottom: 12px;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.senami-site-footer .sf-brand p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #9db0a8;
  max-width: 280px;
  margin: 0 0 14px;
}

.senami-site-footer .sf-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7dcfb6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.senami-site-footer .sf-contact:hover {
  color: #a7f3d0;
}

.senami-site-footer .sf-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7dcfb6;
  margin: 0 0 12px;
  font-weight: 700;
}

.senami-site-footer .sf-col a {
  display: block;
  color: #c5d4ce;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.15s;
}

.senami-site-footer .sf-col a:hover {
  color: #fff;
}

.senami-site-footer .sf-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #7a8f86;
}

.senami-site-footer .sf-bottom a {
  color: #7dcfb6;
  text-decoration: none;
}

@media (max-width: 860px) {
  .senami-site-footer .sf-inner {
    grid-template-columns: 1fr 1fr;
  }
  .senami-site-footer .sf-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .senami-site-footer .sf-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.senami-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-right: 6px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(0, 152, 121, 0.08);
  border: 1px solid rgba(0, 152, 121, 0.18);
  flex-wrap: nowrap;
}

.senami-lang-switch button {
  border: none;
  background: transparent;
  color: #5a6b64;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
  min-width: 28px;
}

.senami-lang-switch button:hover {
  color: #0e7463;
}

.senami-lang-switch button.active {
  background: #0e7463;
  color: #fff;
}

body.dark .senami-lang-switch {
  background: rgba(0, 152, 121, 0.15);
  border-color: rgba(125, 207, 182, 0.25);
}

body.dark .senami-lang-switch button {
  color: #a8b8b2;
}

body.dark .senami-lang-switch button.active {
  background: #0d9f82;
  color: #fff;
}

/* Arabe RTL — ajustements légers */
html[dir="rtl"] .header-container,
html[dir="rtl"] .main,
html[dir="rtl"] .filters-container,
html[dir="rtl"] .content-type-selector,
html[dir="rtl"] .senami-site-footer .sf-inner {
  direction: rtl;
}

html[dir="rtl"] .sidebar {
  text-align: right;
}

html[dir="rtl"] .senami-lang-switch {
  margin-right: 0;
  margin-left: 6px;
}

html[dir="rtl"] .result-desc,
html[dir="rtl"] .ai-lead,
html[dir="rtl"] .results-info {
  text-align: right;
}

@media (max-width: 720px) {
  .senami-lang-switch {
    margin-right: 2px;
    flex-shrink: 0;
  }
  .senami-lang-switch button {
    padding: 6px 4px;
    font-size: 0.62rem;
    min-width: 22px;
  }
}

@media (max-width: 900px) {
  .sn-brand-row {
    position: static;
  }
  body .header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  body .filters-bar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--senami-header-h, 64px);
    z-index: 90;
    background: #f9fafb;
  }
  body .content-type-bar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--senami-tabs-top, 112px);
    z-index: 85;
    background: #f9fafb;
  }
  body.dark .filters-bar,
  body.dark .content-type-bar {
    background: #0a1f1a;
  }
}
