body { padding-bottom: 60px; } .card-img-top { height:200px; object-fit:cover; }
/* ========= FOOTER ULTRA PREMIUM ========= */

.site-footer {
    background: var(--footer-bg, #050509);
  color: var(--footer-text, #f5f5f7);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Liens généraux */
.site-footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Bandeau piliers */
.footer-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 220px;
  flex: 1 1 220px;
}

.footer-pill i {
  font-size: 1.2rem;
  opacity: 0.9;
}

.footer-pill-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-pill-text {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Zone principale */
.footer-main {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a {
  font-size: 0.9rem;
}

/* Bloc marque */
.footer-logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary, var(--color-primary, #0d6efd)), #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050509;
  font-size: 1rem;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.footer-brand-tagline {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-description {
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Newsletter */
.footer-newsletter-form {
  max-width: 360px;
}

.footer-newsletter-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-newsletter-input input {
  border: none;
  background: transparent;
  color: #f5f5f7;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  flex: 1;
  outline: none;
}

.footer-newsletter-input input::placeholder {
  color: rgba(245, 245, 247, 0.5);
}

.btn-footer-icon {
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, var(--color-primary, #0d6efd));
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-footer-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.35);
  opacity: 0.95;
}

/* Réseaux sociaux */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

/* Mini-footer */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: #050509;
}

.footer-bottom-links a {
  opacity: 0.7;
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  opacity: 1;
}

/* Theme override: map dark variants to theme primary */
.btn-dark {
  background-color: var(--color-primary, var(--primary, #0d6efd));
  border-color: var(--color-primary, var(--primary, #0d6efd));
}
.btn-dark:hover,
.btn-dark:focus {
  background-color: var(--primary-hover, var(--color-primary, #0d6efd));
  border-color: var(--primary-hover, var(--color-primary, #0d6efd));
}
.btn-outline-dark {
  color: var(--color-primary, var(--primary, #0d6efd));
  border-color: var(--color-primary, var(--primary, #0d6efd));
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--color-primary, var(--primary, #0d6efd));
  border-color: var(--color-primary, var(--primary, #0d6efd));
  color: #fff;
}
.bg-dark,
.badge.bg-dark {
  background-color: var(--color-primary, var(--primary, #0d6efd)) !important;
}
.border-dark {
  border-color: var(--color-primary, var(--primary, #0d6efd)) !important;
}

/* Primary hover mapping */
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

/* Soft neutral info alert */
.alert-soft-primary {
  background-color: var(--primary-soft-bg) !important;
  color: var(--panel-text) !important;
  border-color: var(--border-soft) !important;
}

/* Theme utility: neutral outline action */
.btn-outline-neutral {
  color: var(--text);
  border-color: var(--border-soft);
  background: transparent;
}
.btn-outline-neutral:hover,
.btn-outline-neutral:focus {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft-bg);
}

/* Theme utility: status badges */
.badge-soft-primary {
  background: var(--primary-soft-bg);
  color: var(--primary);
}
.badge-soft-primary-strong {
  background: rgba(var(--primary-rgb, 13, 110, 253), 0.08);
  color: var(--primary-hover, var(--primary));
}

/* Responsive */
@media (max-width: 767.98px) {
  .footer-pill-row {
    padding-bottom: 1.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .footer-pill {
    min-width: 0;
    width: 100%;
    border-radius: 16px;
    min-height: 72px;
  }

  .footer-main {
    padding-top: 2.25rem;
    padding-bottom: 2rem;
  }

  .footer-newsletter-form {
    max-width: 100%;
  }

  .footer-bottom .container {
    text-align: center;
  }
}
@media (max-width: 575.98px) {
  .footer-pill-row {
    grid-template-columns: 1fr;
  }
}
.country-modal {
    padding: 1.25rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.country-modal-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #111827, #0f172a);
    color: #f9fafb;
    font-size: 1.1rem;
}

.country-modal .xsmall {
    font-size: 0.72rem;
    line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
    .country-modal {
        background: rgba(15, 23, 42, 0.96);
        color: #e5e7eb;
    }
    .country-modal .form-label,
    .country-modal .text-muted {
        color: #9ca3af !important;
    }
}
.btn.rounded-circle i {
    font-size: 1rem;
}

.btn.rounded-circle {
    width: 34px;
    height: 34px;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn.rounded-circle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Toast theme overrides */
.toast.text-bg-success {
  background-color: var(--color-primary, #0d6efd) !important;
  color: #fff;
}
.toast.text-bg-success .btn-light {
  background: #fff;
  color: var(--color-primary, #0d6efd);
  border-color: #fff;
}
.toast.text-bg-success .btn-light:hover {
  background: var(--primary-soft-bg, rgba(37, 99, 235, 0.12));
  color: var(--color-primary, #0d6efd);
  border-color: var(--primary-soft-bg, rgba(37, 99, 235, 0.12));
}
.toast.text-bg-success .btn-outline-light {
  color: #fff;
  border-color: #fff;
}
.toast.text-bg-success .btn-outline-light:hover {
  background: var(--primary-soft-bg, rgba(37, 99, 235, 0.12));
  color: var(--color-primary, #0d6efd);
  border-color: var(--color-primary, #0d6efd);
}
.navbar-brand {
      gap: .5rem;
    }

    .header {
      background: var(--header-bg, #ffffff);
      border-bottom: 1px solid var(--border-soft, rgba(0, 0, 0, .08));
      color: var(--header-text, #111827);
    }
    .header .navbar-brand {
      color: var(--primary, var(--color-primary, #0d6efd));
    }
    .header .navbar-brand:hover {
      color: var(--primary-hover, var(--color-primary, #0d6efd));
    }

    .header .icon {
      color: var(--header-text, #111827);
    }
    .header .icon:hover {
      color: var(--primary, var(--color-primary, #0d6efd));
    }
    .header .nav-link i,
    .header .profile-toggle i,
    .header .navbar-toggler i {
      color: var(--header-text, #111827);
    }
    .header .nav-link:hover i,
    .header .profile-toggle:hover i {
      color: var(--primary, var(--color-primary, #0d6efd));
    }

    .header-search {
      background: var(--surface, #ffffff);
      border: 1px solid var(--border-soft, rgba(0, 0, 0, .08));
      border-radius: var(--radius, 16px);
    }
    .header-search:focus-within {
      border-color: var(--primary, var(--color-primary, #0d6efd));
      box-shadow: 0 0 0 3px var(--primary-soft-bg, rgba(37, 99, 235, 0.12));
    }
    .header-search .form-control {
      background: transparent;
      border: 0;
      color: var(--header-text, #111827);
      box-shadow: none;
    }
    .header-search .form-control::placeholder {
      color: var(--header-text, #111827);
      opacity: .55;
    }

    .search-input-group .form-control {
      border-radius: 999px;
      padding-left: 2.5rem;
    }

    .search-input-group .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      color: var(--header-text, #111827);
      opacity: .6;
    }

    .mega-menu {
      position: absolute;
      z-index: 1100;
      background: var(--surface, #ffffff);
      border: 1px solid var(--border-soft, rgba(0, 0, 0, .08));
      border-radius: 18px;
      box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
      padding: 1rem;
      display: none;
      min-width: 320px;
      max-width: 720px;
      transform-origin: top left;
    }

    .mega-menu .col-left {
      border-right: 1px solid rgba(11, 18, 32, 0.08);
      padding-right: 1rem;
    }

    .mega-menu h6 {
      font-size: .95rem;
      margin-bottom: .6rem;
    }

    .mega-menu a {
      display: block;
      padding: .15rem 0;
      color: var(--text, #374151);
      text-decoration: none;
    }

    .mega-menu a:hover,
    .mega-menu a:focus,
    .mega-menu a.active {
      color: var(--primary-hover, var(--color-primary, #0d6efd));
      background: var(--primary-soft-bg, rgba(37, 99, 235, 0.08));
      border-radius: 8px;
    }

    .mega-menu .col-left a.fw-semibold {
      color: var(--primary, var(--color-primary, #0d6efd));
    }
    .mega-menu .col-left a.fw-semibold:hover,
    .mega-menu .col-left a.fw-semibold:focus {
      color: var(--primary-hover, var(--color-primary, #0d6efd));
      background: transparent;
      padding-left: 0;
    }

    .profile-toggle {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      cursor: pointer;
    }

    .profile-dropdown {
      position: absolute;
      top: calc(100% + .5rem);
      right: 0;
      min-width: 200px;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
      padding: .5rem;
      display: none;
      z-index: 1200;
    }

    .profile-dropdown a {
      display: flex;
      gap: .6rem;
      align-items: center;
      padding: .5rem;
      border-radius: 8px;
      color: #222;
      text-decoration: none;
    }

    .profile-dropdown a:hover {
      background: rgba(0, 0, 0, .03);
      color: var(--color-primary, var(--color-primary, #0d6efd));
    }

    .profile-dropdown .profile-badge {
      font-size: .7rem;
      line-height: 1;
      display: block;
    }

    .profile-badge--warn {
      background: var(--primary-soft-bg, rgba(37, 99, 235, 0.12)) !important;
      color: var(--primary, var(--color-primary, #0d6efd)) !important;
      border: 1px solid rgba(var(--primary-rgb, 13, 110, 253), 0.18);
      opacity: 1;
    }

    .cart-badge {
      position: absolute;
      top: -6px;
      right: -6px;
      font-size: .65rem;
      padding: .25rem .45rem;
      border-radius: 999px;
      background: var(--color-danger, #dc3545);
      color: #fff;
    }

    .categories-bar-full {
      width: 100%;
      border-bottom: 1px solid var(--border-soft, rgba(0, 0, 0, .08));
      background: var(--surface, #ffffff);
    }

    .category-pill {
      color: var(--header-text, #111827);
      font-weight: 500;
      cursor: pointer;
      transition: all .2s;
      padding: 4px 0;
      position: relative;
    }

    .category-pill::after {
      content: "";
      display: block;
      height: 2px;
      width: 0;
      background: var(--color-primary, #0d6efd);
      transition: width .3s;
      position: absolute;
      bottom: -2px;
      left: 0;
    }

    .category-pill:hover::after,
    .category-pill:focus::after {
      width: 100%;
    }

    .category-pill:hover,
    .category-pill:focus {
      color: var(--primary, var(--color-primary, #0d6efd));
    }
    .category-pill.active {
      color: var(--primary, var(--color-primary, #0d6efd));
    }

    .sort-menu .btn {
      border-radius: 12px;
      border: 1px solid #dee2e6;
      padding: 6px 12px;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
    }

    .dropdown-content .dropdown-item {
      cursor: pointer;
      padding: 6px 10px;
      border-radius: 8px;
      transition: background .2s;
    }

    .dropdown-content .dropdown-item:hover {
      background: #f1f3f5;
    }

    @media (max-width: 768px) {
      .search-input-group .form-control {
        padding-left: 2.2rem;
      }

      .mega-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: 60px;
        border-radius: 0;
        max-width: none;
        padding: .8rem;
      }

      .profile-dropdown {
        right: 8px;
        left: auto;
      }

      .categories-bar {
        padding: .5rem 0 .8rem;
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .mega-menu {
        transition: transform .15s ease, opacity .15s ease;
        transform: scale(.98);
        opacity: 0;
      }

      .mega-menu[aria-hidden="false"] {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* ====== DROPDOWN COMPTE - VERSION MOBILE ====== */
    @media (max-width: 991.98px) {

      /* le collapse devient un vrai panneau */
      #mainNav.show {
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
        margin-top: 0.75rem;
        padding: 0.75rem 0 1rem;
      }

      /* la dropdown n'est plus flottante : elle s'intègre sous les icônes */
      .profile-dropdown {
        position: static !important;
        /* plus de absolute */
        transform: none !important;
        inset: auto !important;
        width: 100%;
        max-width: none;
        margin-top: 0.75rem;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
        border: 1px solid #e5e7eb;
        padding: 0.5rem 0;
        background: #fff;
      }

      /* si tu avais un petit triangle avec ::before / ::after, on le masque */
      .profile-dropdown::before,
      .profile-dropdown::after {
        display: none !important;
      }

      .profile-dropdown a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
        font-size: 0.95rem;
        text-decoration: none;
        color: #111827;
      }

    .profile-dropdown a:hover {
      background: #f3f4f6;
    }

    .profile-dropdown a.profile-link {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: .35rem;
    }

    .profile-dropdown .profile-link__title {
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      line-height: 1.1;
      white-space: nowrap;
    }

    .profile-dropdown .profile-badge {
      font-size: .7rem;
      line-height: 1;
      display: block;
    }

    .profile-badge--warn {
      background: var(--primary-soft-bg, rgba(37, 99, 235, 0.12)) !important;
      color: var(--primary, var(--color-primary, #0d6efd)) !important;
      border: 1px solid rgba(var(--primary-rgb, 13, 110, 253), 0.18);
      opacity: 1;
    }

    /* Force badge to sit above and align left */
    .profile-dropdown a.profile-link > .profile-badge {
      align-self: flex-start;
    }

      /* on garde nos 3 ronds bien alignés */
      .nav-main-actions {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding-top: 0.25rem;
      }

      .nav-main-actions .nav-item {
        margin: 0;
      }

      .nav-main-actions .nav-link,
      .nav-main-actions .profile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 999px;
        border: 1px solid var(--border-soft, rgba(0, 0, 0, .08));
        background: var(--surface, #ffffff);
        padding: 0;
        color: var(--header-text, #111827);
      }

      .nav-main-actions .nav-link:hover,
      .nav-main-actions .profile-toggle:hover {
        background: var(--primary-soft-bg, rgba(37, 99, 235, 0.12));
        border-color: var(--primary-light, rgba(37, 99, 235, 0.2));
        color: var(--primary, var(--color-primary, #0d6efd));
      }

      .nav-main-actions .cart-badge {
        top: 4px;
        right: 8px;
      }
    }

    /* ===== Validation visuelle Contact ===== */

.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220,53,69,.25);
}

.form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}

.is-invalid.shake {
    animation: shake-2025 0.18s linear 0s 2;
}

@keyframes shake-2025 {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-2px); }
    50%  { transform: translateX(2px); }
    75%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}


/* Align close icon inside login alerts */
.login-errors .alert {
  position: relative;
  padding-right: 2.25rem;
}

.login-errors .btn-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  margin: 0;
}
