/* Announcement bar */
.announcement-bar {
  font-size: 16px;
  padding: 10px 12px;
  background-color: #fd5e0f;
  color: #fff;
  a {
    text-align: left;
  }

  .selection-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
  }
  .cart-count {
    min-width: 20px;
    padding: 0 5px;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
  }
  .bi {
    font-size: 18px;
    margin-right: 10px;
  }
  svg {
    width: 35px;
    height: 35px;
    margin-right: var(--s-2);
  }
}

/* Header */
header {
  background-color: white;
}
.header {
  margin-top: 30px;
  .img-logo-nav {
    width: 270px;
  }
  .header-search-input:focus {
    outline: none;
  }
  .header-search-form {
    .btn {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      background-color: #1f246b;
      border-color: #1f246b;
      color: white;
      height: 35px;
    }
  }
  input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .cart-count {
    color: #fff;
    background-color: #b5b5b5;
    border-radius: 13px;
    padding: 0px 7px 0px 7px;
    height: min-content;
  }
  .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    width: auto;
    border-radius: 5px;
  }
  .search-baseline {
    margin-bottom: 6px;
    font-weight: 700;
  }
  .header-contact a {
    font-weight: 700;
  }
  .contact-phone-number {
    font-size: 22px;
  }
  .contact-email {
    font-size: 15px;
  }
}

.header-search-wrap {
  position: relative;
}
.header-search-input::-webkit-search-cancel-button {
  appearance: none;
}
.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--z-drawer, 1000);
  background-color: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 320px;
  overflow-y: auto;
}
.search-suggest__item {
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
}
.search-suggest__item:hover,
.search-suggest__item.is-active {
  background-color: #f5f6fa;
}
.search-suggest mark {
  background-color: transparent;
  color: #1f246b;
  font-weight: 600;
}

/* Cœur commun (position/animation/nav/liens) dans composent-generic.css :
   ici uniquement ce qui diffère réellement pour ce site. */
.mobile-drawer {
  z-index: var(--z-drawer);
  padding: var(--s-6);
}
.mobile-drawer__title {
  font-size: 16px;
  color: #1f246b;
  font-weight: bold;
}
.mobile-drawer__link {
  color: #1f246b;
}

/* Footer */
.footer {
  padding-top: 50px;
  padding-bottom: 35px;
  background-color: #bdbdbd;
  font-size: 14px;
  img {
    width: 60%;
  }
  h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
  }
  ul {
    padding: 0;
    list-style: none;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .item {
    li {
      border-bottom: 0.5px solid #1f246b;
      padding: 10px 15px;
      transition: 0.5s all ease;
      &:hover {
        background-color: #1f246b;
        a {
          color: white;
        }
      }
      a {
        width: 100%;
        display: block;
      }
    }
  }
  .contact-footer {
    list-style: none;
    .bi {
      margin-right: 8px;
    }
    a {
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.copyright {
  background-color: #fd5e0f;
  text-align: center;
  font-size: 14px;
  padding: 15px 0;
  a {
    &:hover {
      text-decoration: underline;
    }
  }
}

/* Accueil */
.background-pro {
  padding: 40px 12px;
  font-size: 14px;
  font-weight: 600;
}

.mentions-legales-page {
  color: #323232;
  h1 {
    color: black;
  }
  a:hover {
    text-decoration: underline;
  }
  table,
  td,
  th {
    color: #fff;
  }
}

/* Qui sommes-nous */

.qsn {
  font-size: 14px;
  p,
  li {
    color: #323232;
  }
  p {
    margin-bottom: 10px;
  }
  ul {
    padding-left: 40px;
    list-style: none;
    margin-bottom: 10px;
    li::before {
      content: "- ";
    }
  }
  a:hover {
    text-decoration: underline;
  }
}

/* Nos références / Nos réalisations */
/* Contact */
.contact-page {
  font-size: 14px;
  color: #323232;
  .mention-text-contact {
    font-size: 10px;
  }
  .sous-text {
    text-align: center;
    margin-bottom: 30px;
  }
  .form-group {
    flex-direction: column;
    align-items: initial;
    margin-top: 15px;
  }
  .card-header {
    border-bottom: 1px solid #e4e4e4;
    background-color: rgba(0, 0, 0, 0);
    font-size: 16px;
    padding-bottom: 5px;
    color: #fd5e0f;
  }
  label {
    font-weight: 600;
  }
  small {
    font-size: 12px;
  }
  .mail {
    a {
      color: #fd5e0f;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* Plan du site */
.plan-site {
  h2 {
    font-weight: bold;
  }
  .plan-du-site__list {
    padding: 0;
    list-style: none;
    line-height: 1.8;

    a {
      color: inherit;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;

  h3 {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    line-height: 19px;
    min-height: 40px;
    margin-bottom: 0px;
    font-size: 15px;
    text-align: center;
    color: #1f246b;
    font-weight: 600;
    &:hover {
      color: #fd5e0f;
    }
  }
  small {
    color: #444;
  }
  .prix {
    font-size: 14px;
    color: #1f246b;
    text-align: center;
    span {
      margin-left: 5px;
    }
  }

  button {
    margin-top: 15px;
  }

  .bg-product-card {
    position: relative;
    background-color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
  }
}

.badge-div {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  pointer-events: none;
}
.product-card__title {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-fg);
}
.product-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--s-1);
}
.product-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-subtle);
}
.product-card__compare-price {
  font-size: 13px;
  color: var(--c-subtle);
  text-decoration: line-through;
}
.qty__input {
  text-align: center;
  font-size: 14px;
  -moz-appearance: textfield;
}
.qty__input:focus {
  outline: none;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
/* Price (snippets/price.liquid) */
.price-wrapper--lg .price {
  font-size: var(--text-3xl);
}

/* Catégories */
.collection-sidebar {
  h2 {
    font-size: 24px;
    color: #1f246b;
  }

  input,
  select {
    font-size: 14px;
  }

  .collection-sidebar__header {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    cursor: default;
    pointer-events: none;
    h2 {
      color: white;
    }
  }

  .collection-sidebar__chevron {
    display: none;
  }

  .size-swatch-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .size-swatch-label {
    cursor: pointer;
    color: #444;
    input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }
  }

  .size-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 40px;
    border: 1.5px solid var(--c-border);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
  }

  .size-chip:hover {
    border-color: var(--c-fg);
  }

  .size-swatch-label input:checked + .size-chip {
    background: #1f246b;
    border-color: white;
    color: #fff;
  }

  .color-swatch-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }

  .color-swatch-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .color-swatch {
    display: block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #dadada;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .color-swatch:hover {
    transform: scale(1.15);
  }

  .color-swatch-label input:checked + .color-swatch {
    box-shadow:
      0 0 0 2px rgb(239 234 234 / 71%),
      0 0 0 1px #fff,
      0 0 0 2px #1f246b;
  }
}

/* Accordéon filtres — mobile uniquement, desktop inchangé */
@media (max-width: 768px) {
  .home-top {
    & .home-main-image {
      height: auto;
    }
  }

  .collection-sidebar {
    .collection-sidebar__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      pointer-events: auto;
      padding: 12px;
      background-color: #1f246b;
      color: white;
      border-bottom: 1px solid #dcdcdc;

      h2 {
        margin: 0;
      }
    }

    .collection-sidebar__chevron {
      display: block;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .collection-sidebar__header[aria-expanded="true"]
      .collection-sidebar__chevron {
      transform: rotate(180deg);
    }

    .collection-sidebar__body.collapse:not(.show) {
      display: none;
    }

    .collection-sidebar__body.collapsing {
      height: 0;
      overflow: hidden;
      transition: height 0.35s ease;
    }
  }
}
.pagination__dots {
  color: #1f246b;
}
.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  font-size: 14px;
}
.collection-toolbar__count {
  display: flex;
  align-items: baseline;
  justify-content: end;
  gap: 5px;
  font-size: var(--text-sm);

  strong {
    font-weight: bold;
  }
}
.filter-form {
  flex-direction: column;
  align-items: flex-start;

  .btn {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
  }
}

.filter-group {
  padding-block: var(--s-5);
  width: 100%;
  p {
    font-size: 17px;
    width: 100%;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 5px;
    margin-bottom: 10px;
  }
}
.filter-group:last-child {
  border-bottom: none;
}
.filter-group--tight {
  margin-bottom: var(--s-5);
}
.filter-select,
.filter-input {
  width: 100%;
}
.filter-price {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.color-swatch--white {
  background: #fff;
}
.color-swatch--black {
  background: #1a1a1a;
}
.color-swatch--gray {
  background: #9ca3af;
}
.color-swatch--red {
  background: #dc2626;
}
.color-swatch--orange {
  background: #f97316;
}
.color-swatch--yellow {
  background: #facc15;
}
.color-swatch--green {
  background: #16a34a;
}
.color-swatch--blue {
  background: #2563eb;
}
.color-swatch--navy {
  background: #0f172a;
}
.color-swatch--purple {
  background: #7c3aed;
}
.color-swatch--pink {
  background: #ec4899;
}
.color-swatch--brown {
  background: #78350f;
}
.color-swatch--beige {
  background: #d4b896;
}
.color-swatch--gold {
  background: #d4af37;
}
.color-swatch--silver {
  background: #c0c0c0;
}
.color-swatch--teal {
  background: #0891b2;
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--s-1) 0;
}
.filter-option__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.filter-option__check {
  width: 18px;
  height: 18px;
  border: 1.5px solid #ced4da;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition:
    background var(--t),
    border-color var(--t);
}
.filter-option input:checked + .filter-option__check,
.filter-option.is-active .filter-option__check {
  background: #fd5e0f;
  border-color: #fd5e0f;
}
.filter-option input:checked + .filter-option__check::after,
.filter-option.is-active .filter-option__check::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 1px auto 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.filter-option__label {
  font-size: var(--text-sm);
}

/* Cart */
.section-title {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
/* Couleur de marque uniquement : structure dans composent-generic.css */
.nav-checkout .active {
  color: #fd5e0f;
}
.pp-atc-zone {
  width: 100%;
}

/* Landing (templates/page.landing.liquid) */
.landing-hero-plain {
  background: var(--c-surface);
  padding-block: var(--s-24);
  text-align: center;
}
.landing-hero-plain__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--s-4);
}
.landing-hero-plain__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-6);
}
.landing-hero-plain__subtitle {
  font-size: var(--text-xl);
  color: var(--c-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--s-8);
}
.landing-content {
  margin-inline: auto;
}
.landing-featured {
  background: var(--c-surface);
}
.landing-featured__title {
  margin-bottom: var(--s-10);
}

/* Page CMS générique (templates/page.liquid) */
.page-blocks {
  margin-inline: 0;
}

/* Panier / Checkout */
.il-checkout-s20 {
  a {
    color: #1f246b;
    border: 1px solid #1f246b;
  }
}

.il-checkout-s6,
.checkout-page h3 {
  font-size: 20px;
}

.page-panier .title {
  color: #1f246b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .footer {
    img {
      width: 100%;
    }
  }
}

@media (max-width: 500px) {
  .footer {
    img {
      width: 60%;
    }
  }
  .header {
    padding: 0 12px;
    .img-logo-nav {
      width: 160px;
    }
    .mobile-menu-toggle svg {
      height: 35px;
      width: 35px;
    }
    .btn-icon {
      margin-left: 30px;
    }
  }
}

/* --- NAV --- */
.main-nav {
  margin-top: 20px;
  .main-nav__list {
    display: flex;
    list-style: none;
    > li {
      display: flex;
      flex: 1 1 0;
    }
  }
  .main-nav__link {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #1f246b;
    cursor: pointer;
    transition: 0.5s all ease;
    &:hover,
    &.show {
      background-color: #1f246b;
      color: white;
      transition: 0.5s all ease;
    }
  }

  .dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 8px;
    border-right: 2px solid currentcolor;
    border-bottom: 2px solid currentcolor;
    transform: rotate(45deg);
    vertical-align: middle;
  }
  .dropdown {
    position: relative;
  }
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1040;
    min-width: 260px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 36, 107, 0.15);
    &.show {
      display: block;
    }
  }
  .dropdown-item {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: #1f246b;
    &:hover {
      color: #fd5e0f;
      background: #f5f6fa;
    }
  }
}
.home-top {
  margin-top: 20px;
  .txt-categories {
    padding: 5px 10px 10px 5px;
    background-color: #fd5e0f;
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }
  .nav-categories {
    list-style: none;
    border: 1px solid lightgrey;
    a {
      display: block;
      padding: 3px 10px;
      font-size: 13px;
      color: black;
      font-weight: 600;
    }
  }
  .home-main-image {
    width: 100%;
    height: 550px;
  }
}
.tendances {
  .title-div {
    font-size: 24px;
    color: #fd5e0f;
  }
  .btn-primary {
    width: auto;
    float: right;
    &:hover {
      text-decoration: underline;
    }
  }
}
.category-title {
  font-size: 28px;
  color: #1f246b;
}
.footer-logo {
  max-width: 270px;
  margin-bottom: 15px;
}

.il-checkout-s19,
.il-checkout-s18 {
  font-weight: 600;
}
