/* Ndioro — template site (look marketplace, couleurs orange, pas de copie de logo) */
:root {
  --nd-ink: #1a1a1a;
  --nd-muted: #5a5a5a;
  --nd-line: #eee;
  --nd-bg: #f4f4f4;
  --nd-card: #fff;
  --nd-accent: #ff6e14;
  --nd-accent-2: #e85d04;
  --nd-max: 1180px;
  --nd-header-h: 64px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--nd-bg);
  color: var(--nd-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
}
a { color: var(--nd-accent); }
img { max-width: 100%; height: auto; }
.nd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nd-skip {
  position: absolute;
  left: -999px;
  top: .5rem;
  background: #fff;
  padding: .5rem .8rem;
  z-index: 100;
}
.nd-skip:focus { left: .5rem; }

.nd-header {
  background: #fff;
  border-bottom: 1px solid var(--nd-line);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}
.nd-header-inner {
  max-width: var(--nd-max);
  margin: 0 auto;
  padding: .7rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand search actions";
  align-items: center;
  gap: .85rem;
}
.nd-brand {
  grid-area: brand;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  min-height: 40px;
}
.nd-brand img { max-height: 36px; width: auto; }
.nd-logo {
  color: var(--nd-accent);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -.04em;
  text-transform: lowercase;
  line-height: 1;
}
.nd-header-search {
  grid-area: search;
  display: flex;
  min-height: 48px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.nd-header-search input {
  flex: 1;
  border: 0;
  min-width: 0;
  padding: 0 1rem;
  font: inherit;
  font-size: 1rem;
  background: transparent;
}
.nd-header-search input:focus { outline: none; }
.nd-header-search button {
  border: 0;
  background: var(--nd-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 1.15rem;
  cursor: pointer;
  white-space: nowrap;
}
.nd-header-search button:hover { background: var(--nd-accent-2); }
.nd-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nd-login {
  color: var(--nd-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
.nd-login:hover { color: var(--nd-accent) !important; }
.nd-deposer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  background: var(--nd-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 1rem;
  white-space: nowrap;
}
.nd-deposer:hover { background: var(--nd-accent-2); color: #fff !important; }
.nd-deposer span { font-size: 1.25rem; line-height: 1; font-weight: 800; }
.nd-deposer-txt { font-size: .95rem; font-weight: 700; }
.nd-deposer-short { display: none; font-size: .92rem; font-weight: 700; }

.nd-nav {
  border-top: 1px solid var(--nd-line);
  background: #fff;
}
.nd-nav-inner {
  max-width: var(--nd-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: .15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nd-nav-inner::-webkit-scrollbar { display: none; }
.nd-nav-inner a,
.nd-nav-inner .mod-menu a,
.nd-nav-inner li a {
  display: inline-block;
  color: var(--nd-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem .75rem .8rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nd-nav-inner a:hover,
.nd-nav-inner a.is-on,
.nd-nav-inner a.is-prio:hover {
  color: var(--nd-accent) !important;
  border-bottom-color: var(--nd-accent);
}
.nd-nav-inner a.is-prio { font-weight: 800; }
.nd-nav-inner ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .15rem;
}

.nd-main {
  max-width: var(--nd-max);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  min-height: 50vh;
}
.nd-shell {
  max-width: var(--nd-max);
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.has-ads-side .nd-shell {
  max-width: 1500px;
  grid-template-columns: minmax(0, 1fr);
}
.has-ads-side .nd-shell:has(.nd-ad-side ins[data-ad-status="filled"]) {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.has-ads-side .nd-main {
  max-width: none;
  margin: 0;
  padding: 1rem 0 2rem;
}
.nd-ad {
  text-align: center;
}
.nd-ad-top,
.nd-ad-bottom {
  max-width: 1500px;
  margin: 0 auto;
  padding: .75rem 1rem;
}
.nd-ad-top ins,
.nd-ad-bottom ins,
.nd-ad-side ins {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}
.nd-ad-top ins[data-ad-status="filled"],
.nd-ad-bottom ins[data-ad-status="filled"] {
  min-height: 90px;
}
.nd-ad-side {
  position: sticky;
  top: 88px;
  padding: 1rem 0 2rem;
  min-width: 0;
}
.nd-ad-side ins[data-ad-status="filled"] { min-height: 250px; }
.nd-ad-top:not(:has(ins[data-ad-status="filled"])),
.nd-ad-bottom:not(:has(ins[data-ad-status="filled"])),
.nd-ad-side:not(:has(ins[data-ad-status="filled"])) {
  display: none;
}
.nd-no-ads .nd-ad { display: none !important; }
@media (max-width: 1100px) {
  .has-ads-side .nd-shell {
    grid-template-columns: 1fr;
    max-width: var(--nd-max);
  }
  .nd-ad-side {
    position: static;
    padding: 0 0 1rem;
  }
}
#system-message-container { margin: 0 0 1rem; }
.alert {
  padding: .85rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--nd-line);
  margin: 0 0 .75rem;
}
.alert-success { border-color: #25d366; }
.alert-error, .alert-danger { border-color: #d32f2f; }
.nd-main input[type="text"],
.nd-main input[type="password"],
.nd-main input[type="email"],
.nd-main input[type="search"],
.nd-main select,
.nd-main textarea {
  max-width: 100%;
  font-size: 16px;
}

.nd-footer {
  background: #fff;
  border-top: 1px solid var(--nd-line);
  color: var(--nd-muted);
  font-size: .9rem;
}
.nd-footer-inner {
  max-width: var(--nd-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}
.nd-footer a { color: var(--nd-accent); }
.nd-footer-brand {
  color: var(--nd-accent);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  text-transform: lowercase;
  margin: 0 0 .35rem;
}
.nd-footer p { margin: 0 0 .4rem; }
.nd-copy { margin-top: 1rem !important; font-size: .82rem; }
.nd-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.05rem;
  margin: .85rem 0 .25rem;
}
.nd-footer-legal a {
  color: var(--nd-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: .88rem;
}
.nd-footer-legal a:hover { color: var(--nd-accent) !important; }

.nd-users-legal {
  background: #fff;
  border-radius: 12px;
  padding: .9rem 1rem;
  margin: 0 0 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  font-size: .92rem;
  color: var(--nd-muted);
  line-height: 1.5;
}
.nd-users-legal a { font-weight: 600; }

.nd-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--nd-line);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .1);
  max-height: min(42vh, 320px);
  overflow: auto;
}
.nd-cookie-inner {
  max-width: var(--nd-max);
  margin: 0 auto;
  padding: 1rem 1.15rem 1.2rem;
  display: grid;
  gap: .85rem;
}
.nd-cookie-title {
  font-weight: 800;
  margin: 0 0 .35rem;
}
.nd-cookie-copy p { margin: 0; color: var(--nd-muted); font-size: .92rem; line-height: 1.5; }
.nd-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.nd-cookie-btn {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 .95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nd-cookie-btn-ok { background: var(--nd-accent); color: #fff; }
.nd-cookie-btn-ok:hover { background: var(--nd-accent-2); }
.nd-cookie-btn-no { background: #f0f0f0; color: var(--nd-ink); }
.nd-cookie-btn-more { background: transparent; color: var(--nd-ink); text-decoration: underline; min-height: auto; padding: .25rem .15rem; font-weight: 600; }
.nd-cookie-panel {
  grid-column: 1 / -1;
  display: none;
  gap: .55rem;
  padding-top: .25rem;
}
.nd-cookie-panel.nd-cookie-panel--open { display: grid; }
.nd-cookie-opt {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .92rem;
}
.nd-cookie-opt input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--nd-accent); }
@media (min-width: 760px) {
  .nd-cookie-inner { grid-template-columns: 1fr auto; align-items: center; }
}

.nd-error-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  max-width: 520px;
  margin: 2rem auto;
  text-align: center;
}
.nd-error-code {
  font-size: 3rem;
  font-weight: 800;
  color: var(--nd-accent);
  margin: 0;
  letter-spacing: -.04em;
}

@media (max-width: 860px) {
  .nd-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-template-columns: none;
    grid-template-areas: none;
    padding: .55rem .75rem;
    gap: .5rem .6rem;
  }
  .nd-brand {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
  }
  .nd-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .nd-header-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    order: 3;
  }
  .nd-header-search input { font-size: 16px; padding: 0 .8rem; }
  .nd-login { display: none; }
  .nd-deposer { padding: 0 .85rem; min-height: 44px; }
  .nd-deposer-plus,
  .nd-deposer-txt { display: none; }
  .nd-deposer-short { display: inline; }
  .nd-main { padding: .85rem .75rem 2.5rem; }
  .nd-shell { padding: 0 .75rem 1.5rem; }
  .nd-ad-top, .nd-ad-bottom { padding: .5rem .75rem; }
  .nd-cookie-inner {
    padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom));
    gap: .45rem;
  }
  .nd-cookie-copy p:not(.nd-cookie-title) {
    font-size: .82rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .nd-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
  }
  .nd-cookie-btn-ok,
  .nd-cookie-btn-no { width: 100%; min-height: 44px; }
  .nd-cookie-btn-more { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
  .nd-logo { font-size: 1.35rem; }
  .nd-header-search button { padding: 0 .7rem; font-size: .85rem; }
  .nd-deposer { min-width: 0; padding: 0 .75rem; }
  .nd-footer-inner { padding: 1.15rem .75rem calc(1.5rem + env(safe-area-inset-bottom)); }
}
