/* =============================================
   COMPONENTS.CSS — Navbar, Footer, Modaux...
============================================= */

/* ============================
   NAVBAR
============================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__logo-mark {
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--black);
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--black);
}

.navbar__logo-text span {
  color: var(--yellow-dark);
}

/* Nav Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--black);
  background: var(--yellow-light);
}

.navbar__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
}

/* Dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 200px;
  z-index: 200;
}

.navbar__dropdown:hover .navbar__dropdown-menu {
  display: block;
}

.navbar__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.navbar__dropdown-menu a:hover {
  background: var(--yellow-light);
  color: var(--black);
}

.navbar__dropdown-menu .dropdown-icon {
  font-size: 1.1rem;
}

/* Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Burger mobile */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: all var(--transition);
}

.navbar__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__burger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav — panneau déroulant sous la navbar */
.navbar__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 8px 24px 14px;
  border-top: 1.5px solid var(--border);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  z-index: 1001;
}

.navbar__mobile.open { display: block; }

/* Jamais visible sur desktop, même si "open" reste actif après un resize */
@media (min-width: 993px) {
  .navbar__mobile { display: none !important; }
}

.navbar__mobile a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--border);
}

.navbar__mobile a:hover {
  color: var(--yellow-dark);
}

/* ============================
   FOOTER
============================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand-mark {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--black);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.footer__brand-name span {
  color: var(--yellow);
}

.footer__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--yellow);
  color: var(--black);
}

.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: var(--yellow);
}

/* ============================
   TOAST / NOTIFICATIONS
============================ */
.toast-container {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 360px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.toast--success { border-left: 4px solid #2E7D32; }
.toast--error   { border-left: 4px solid #C62828; }
.toast--info    { border-left: 4px solid var(--yellow-dark); }

.toast__icon { font-size: 1.2rem; }
.toast__msg  { font-size: 0.9rem; font-weight: 500; flex: 1; }

/* ============================
   LOADING SPINNER
============================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0,0,0,0.12);
  border-top-color: var(--yellow-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================
   TYPE TOGGLE (digital/physique)
============================ */
.type-toggle {
  display: inline-flex;
  background: var(--gray-light);
  border-radius: 100px;
  padding: 4px;
  gap: 0;
}

.type-toggle__btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--gray-mid);
  transition: all var(--transition);
}

.type-toggle__btn.active {
  background: var(--yellow);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}

/* ============================
   STAR RATING
============================ */
.stars {
  display: flex;
  gap: 2px;
  color: var(--yellow);
  font-size: 0.9rem;
}

/* ============================
   BREADCRUMB
============================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-mid);
  margin-bottom: 24px;
  max-width: 100%;
  min-width: 0;
}

.breadcrumb a {
  color: var(--yellow-dark);
  font-weight: 500;
}

.breadcrumb__sep {
  color: var(--border);
}

/* ============================
   RESPONSIVE COMPONENTS
============================ */
@media (max-width: 992px) {
  .navbar__nav,
  .navbar__actions .btn:not(:last-child) {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* =============================================================
   LOGO IMAGE OFFICIEL NOVAQ
   Remplace le "N" + texte par l'image, sans toucher au HTML.
   (chemins relatifs à ce fichier : assets/css/ -> ../img/)
============================================================= */
.navbar__logo-mark,
.navbar__logo-text { display: none !important; }
.navbar__logo {
  display: inline-block;
  width: 116px; height: 34px;
  background: url("../img/logo-novaq.png") left center / contain no-repeat;
}

/* Footer sur fond sombre -> logo blanc */
.footer__brand-mark,
.footer__brand-name { display: none !important; }
.footer__brand-logo {
  display: inline-block;
  width: 124px; height: 40px;
  background: url("../img/logo-novaq-white.png") left center / contain no-repeat;
}

/* Fil d'ariane compact sur mobile (évite le débordement) */
@media (max-width: 640px) {
  .breadcrumb { font-size: .76rem; gap: 5px; margin-bottom: 16px; }
  .breadcrumb a, .breadcrumb span { min-width: 0; }
}
