/* ================================================================
   TOPBAR
   ================================================================ */

/* Masquer les bandeaux natifs WooCommerce (ajout panier / store notice)
   — le side-cart gère le feedback visuel. */
.woocommerce-message,
.woocommerce-store-notice,
.demo_store,
p.demo_store {
  display: none !important;
}
.woocommerce-notices-wrapper:empty { display: none !important; }

.topbar {
  background: var(--drc-black);
  border-bottom: 1px solid #1a1a1a;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar::-webkit-scrollbar { display: none; }
.topbar .container { overflow: visible; width: 100%; }

.topbar__items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.2rem;
  list-style: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  width: 100%;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #999999;
}
.topbar__item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--drc-green);
}

.topbar__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--drc-green);
  font-size: .75rem;
}
.topbar__score {
  color: var(--drc-green);
  font-weight: 800;
}
.topbar__sep {
  color: #2a2a2a;
  font-size: .7rem;
}

/* ================================================================
   SITE HEADER
   ================================================================ */

.site-header {
  background: var(--drc-dark);
  border-bottom: 1px solid var(--drc-border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  height: var(--navbar-h);
}

/* Logo */
.site-header__logo,
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-header__logo img,
.site-header__logo .custom-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--drc-white);
}
.site-header__logo-text .logo-dr { color: var(--drc-green); }

/* Primary nav */
.primary-nav { display: flex; justify-content: center; align-items: center; }
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav .menu-item > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem 1rem;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #aaaaaa;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a,
.primary-nav .menu-item.current_page_item > a {
  color: var(--drc-white);
  background: rgba(255,255,255,.06);
}
.primary-nav .menu-item-has-children > a::after {
  content: '\203A';
  font-size: .85rem;
  opacity: .65;
  margin-left: .15rem;
  transform: rotate(90deg);
  display: inline-block;
  line-height: 1;
}

/* Dropdown sub-menu */
.primary-nav .menu-item-has-children {
  position: relative;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #161616;
  border: 1px solid var(--drc-border-dark);
  border-radius: var(--radius);
  padding: .4rem 0;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  list-style: none;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.primary-nav .sub-menu .menu-item > a {
  display: block;
  padding: .5rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  border-radius: 0;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.primary-nav .sub-menu .menu-item > a:hover {
  color: var(--drc-white);
  background: rgba(255,255,255,.06);
}

/* Fallback nav */
.nav-fallback {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}
.nav-fallback a {
  display: block;
  padding: .5rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #aaaaaa;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-fallback a:hover { color: var(--drc-white); background: rgba(255,255,255,.06); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-shrink: 0;
}
.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #999999;
  background: transparent;
  border: none;
  transition: color .2s, background .2s;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.header-action-btn:hover { color: var(--drc-white); background: rgba(255,255,255,.07); }
.header-action-btn svg { width: 20px; height: 20px; }

/* Cart badge */
.header-cart__badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  background: var(--drc-green);
  color: var(--drc-black);
  font-size: .58rem;
  font-weight: 800;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ================================================================
   FOOTER
   ================================================================ */

.prefooter-services {
  background: var(--drc-dark);
  padding: 1.25rem 0;
  border-top: 1px solid var(--drc-border-dark);
  border-bottom: 1px solid var(--drc-border-dark);
}
.prefooter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.service-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--drc-green);
}
.service-icon svg { width: 100%; height: 100%; }
.service-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--drc-white);
  margin-bottom: .2rem;
}
.service-desc {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  line-height: 1.4;
}

.site-footer {
  background: var(--drc-black);
  padding: 3rem 0 1.5rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.site-footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--drc-white);
  display: inline-block;
  margin-bottom: 1rem;
}
.site-footer__logo-wrap img { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer__tagline {
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  line-height: 1.7;
  max-width: 280px;
}
.site-footer__nav-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: .8rem;
}
.site-footer__nav .menu { display: flex; flex-direction: column; gap: .35rem; }
.site-footer__nav .menu a {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.site-footer__nav .menu a:hover { color: var(--drc-white); }
.site-footer__bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 1.25rem;
  text-align: center;
}
.site-footer__bottom p {
  font-size: .72rem;
  color: rgba(255,255,255,.25);
}

/* ================= BURGER NAV (mobile/tablet) =================
   Masqué par défaut (desktop). Activé et stylé dans tablet.css / mobile.css.
   Nécessaire car ces fichiers ne sont pas chargés au-delà de leur breakpoint. */
.drc-nav-details { display: none; }

/* ================= RECHERCHE (panneau navbar) — 1.0.7 =================
   Le déclencheur est un <summary> : il ouvre/ferme le panneau sans quitter
   la page. Il n'est PAS un lien, donc aucune navigation vers une recherche
   vide (/?s=) n'est possible. Le panneau est masqué quand <details> est
   fermé (comportement natif : fonctionne sans JavaScript). */

/* Libellé accessible — non défini ailleurs dans le thème */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drc-search { position: relative; }

/* Retire le marqueur natif du <summary> (triangle) */
.drc-search__toggle { list-style: none; }
.drc-search__toggle::-webkit-details-marker { display: none; }
.drc-search__toggle::marker { content: ''; }

.drc-search__panel {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  z-index: 60;
  width: min(360px, calc(100vw - 2rem));
  padding: .9rem;
  background: var(--drc-dark-2);
  border: 1px solid var(--drc-border-dark);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

/* Formulaire de recherche — utilisé dans la navbar ET sur la page de résultats */
.drc-search-form { margin: 0; }

.drc-search-form__row {
  display: flex;
  align-items: stretch;
  gap: .4rem;
}

.drc-search-form__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .6rem .8rem;
  font-size: .9rem;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--drc-border-dark);
  border-radius: var(--radius-sm);
}

.drc-search-form__input::placeholder { color: #7d848c; }

.drc-search-form__input:focus {
  outline: none;
  border-color: var(--drc-green);
  background: rgba(255, 255, 255, .08);
}

.drc-search-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  color: #0a0a0a;
  background: var(--drc-green);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
}

.drc-search-form__submit:hover { background: var(--drc-green-neon); }
.drc-search-form__submit svg { width: 18px; height: 18px; }

.drc-search-form__hint {
  margin: .55rem 0 0;
  font-size: .78rem;
  color: #ffb4b4;
}
.drc-search-form__hint[hidden] { display: none; }
