@font-face {
  font-family: "SanFranciscoRegular";
  src: url("../fonts/SanFranciscoDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100%;
  font-family: "SanFranciscoRegular", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #444444;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
input {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
  font-size: 16px;
  height: 35px;
}

/* Announcement bar */
.announcement-bar {
  font-size: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid #efefef;
  a {
    color: inherit;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
  }
  .slogan {
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
  }
  svg {
    width: 35px;
    height: 35px;
    margin-right: var(--s-2);
  }
}

/* Header */
.header {
  padding: 15px 50px;

  .bi-cart-fill {
    color: #33519f;
    font-size: 30px;
  }
  .img-logo-nav {
    max-height: 158px;
    max-width: 250px;
    min-width: 0;
    margin-right: 20px;
  }
  .img-logo-nav-apo {
    max-height: 120px;
    max-width: 120px;
    min-width: 0;
  }

  .header-search-input:focus {
    outline: none;
    border-color: var(--c-fg);
  }
  .header-search-form {
    .btn {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
  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;
  }
}

/* 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: #33519f;
  font-weight: bold;
}

/* Footer */
.footer {
  padding-top: 50px;
  padding-bottom: 35px;
  color: #444;
  background-color: #fff;
  border-top: 1px solid #dadada;
  box-shadow: 0 -5px 5px -5px #dedede;
  font-size: 14px;
  img {
    width: 60%;
  }
  h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #33519f;
    font-weight: bold;
  }
  ul {
    padding: 0;
    list-style: none;
    line-height: 1.6;
    margin-bottom: 0;
  }
  a:hover {
    color: #33519f;
  }
  .copyright {
    border-top: 1px solid #dadada;
    background-color: #f7f7f7;
    text-align: center;
    font-size: 13px;
    padding: 15px 0;
  }
}

.copyright {
  font-size: 13px;
  border-top: 1px solid #dadada;
  padding: 15px 0;
  background-color: #f7f7f7;
}

/* Accueil */
.newsletter {
  background-color: #33519f;
  padding: 16px 6px 12px 6px;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  color: #fff;
  a {
    padding-left: 15px;
  }
  button {
    background-color: black;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: 35px;
  }
  .form-group {
    width: 100%;
  }
  input {
    border-radius: 0;
  }
}

.background-referencement {
  margin-top: 50px;
}

/* Carrousel produits (Swiper — voir product-carousel.liquid, même composant
   que site-enabled/la-sorbonne). .product-card garde ses classes de colonne
   Bootstrap (col-6 col-md-4...) pour son usage en grille ailleurs (ex:
   /products) ; ici on les neutralise pour qu'il remplisse le swiper-slide. */
.carousel-section {
  margin-top: 50px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.product-swiper .product-card {
  width: 100%;
  max-width: 100%;
  flex: initial;
  height: 100%;
}
.swiper-pagination {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 12px;
}
.swiper-pagination-bullet-active {
  background: #33519f;
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.background-categories-home {
  margin-top: 50px;
  .title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #33519f;
  }
}

.block-carre {
  padding: 20px;
  margin: 10px 0;
  height: 250px;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.block-carre:hover .hover-h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  height: 200px;
  padding: 10px;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
}

.home-text-theme {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.53);
  vertical-align: middle;
  margin-top: 13%;
  color: #444444;
  font-size: 17px;
}

.block-carre:hover .home-text-theme {
  display: none;
}

.block-carre:hover {
  box-shadow: 5px 5px 5px #e8e6e6;
}

.hover-h3 {
  display: none;
}

.style-h3 {
  color: #444444;
  font-size: 17px;
}

.border-categories {
  background-color: #dadada;
  height: 1px;
  margin: 30px 0;
}

.background-pro {
  font-size: 13px;
  margin-top: 50px;
}

.div-reassurance {
  color: #fff;
  text-align: center;
  font-size: 18px;

  .fond-bleu,
  .fond-rouge,
  .fond-gris,
  .fond-grisf {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .fond-bleu {
    background-color: #242c47;
  }
  .fond-gris {
    background-color: #e8e6e6;
  }
  .fond-rouge {
    background-color: #892a2f;
  }
  .fond-grisf {
    background-color: #a0a09f;
  }
  img {
    width: 40px;
    margin-bottom: 15px;
  }
}

.mentions-legales-page {
  a:hover {
    color: #33519f;
  }
}

/* Qui sommes-nous */
.nom-equipe {
  color: #33519f;
  font-weight: bold;
}

/* Contact */
.contact-page {
  .mention-text-contact {
    font-size: 11px;
  }

  .form-group {
    flex-direction: column;
    align-items: initial;
    margin-top: 5px;
  }

  form.panel-group {
    flex-direction: column;
    align-items: initial;
  }
  .card-header {
    padding: 0.5rem 1rem 0.5rem 0rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e4e4e4;
    background-color: rgba(0, 0, 0, 0);
    font-size: 17px;
    color: #33519f;
    padding-top: 0px;
  }
  small {
    font-size: 12px;
  }
}

/* Checkout */
/* Couleur de marque uniquement : structure dans composent-generic.css */
.checkout-page {
  .card-header {
    color: #33519f;
  }
}

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;

  &:hover {
    box-shadow: 1px 1px 12px #dedede;
    animation: swing 0.6s forwards;
  }

  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: 16px;
    text-align: center;
  }
  .prix {
    font-size: 16px;
    font-weight: bold;
    color: #03225b;
    text-align: center;
    span {
      margin-left: 5px;
    }
  }

  button {
    margin-top: 15px;
  }
}

.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);
}
.option-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.option-swatch {
  min-width: 40px;
  height: 40px;
  padding-inline: var(--s-3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--t),
    background var(--t);
  background: none;
}
.option-swatch:hover {
  border-color: var(--c-fg);
}
.option-swatch.is-active {
  border-color: var(--c-fg);
  background: var(--c-fg);
  color: var(--c-bg);
}
.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;
}

/* Collection — bannière de catégorie (image/texte par catégorie via dict.category_banners) */
.category-header {
  background-color: var(--c-surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding-block: var(--s-10);
  margin-bottom: var(--s-8);
}

.category-header__title {
  margin-bottom: var(--s-3);
  color: #fff;
}
.category-header__desc {
  max-width: 600px;
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.category-header[data-category-id="11481"],
.category-header[data-category-id="24"],
.category-header[data-category-id="2"],
.category-header[data-category-id="10"],
.category-header[data-category-id="2263"],
.category-header[data-category-id="3135"],
.category-header[data-category-id="3"],
.category-header[data-category-id="25"],
.category-header[data-category-id="9701"],
.category-header--search {
  h1 {
    color: #444444;
  }
  .breadcrumb {
    color: #444444;
  }
}

@media (max-width: 640px) {
  .category-header {
    padding-block: var(--s-6);
  }
}

/* Catégories */
.collection-sidebar {
  h2 {
    font-size: 24px;
    color: #33519f;
  }

  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;
  }

  .collection-sidebar__chevron {
    display: none;
  }

  .size-swatch-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .size-swatch-label {
    cursor: pointer;

    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: #33519f;
    border-color: #33519f;
    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 1px rgb(0 0 0 / 71%), 0 0 0 2px #fff, 0 0 0 2px #dedede;
  }
}

/* Accordéon filtres — mobile uniquement, desktop inchangé */
@media (max-width: 768px) {
  .collection-sidebar {
    .collection-sidebar__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      pointer-events: auto;
      padding: 12px;
      background-color: #33519f;
      color: white;
      border-bottom: 1px solid #dcdcdc;

      h2 {
        margin: 0;
        color: white;
      }
    }

    .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;
    }
  }
}

.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);
  color: var(--c-muted);

  strong {
    font-weight: bold;
    color: #3c3c3c;
  }
}
.filter-form {
  flex-direction: column;
  align-items: flex-start;

  .btn {
    width: 100%;
  }
}

.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-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: #33519f;
  border-color: #33519f;
}
.filter-option__label {
  font-size: var(--text-sm);
}

/* Mega menu */
.mega-nav {
  border-bottom: 1px solid #dadada;
  box-shadow: 0 5px 5px -5px #dedede;
  z-index: calc(var(--z-header) - 1);
}

.mega-nav__top {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
}

.mega-nav__trigger {
  color: #33519f;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 35px;
  font-size: 16px;
}

.mega-trigger {
  position: relative;
}

.mega-nav__top-link:hover,
.mega-trigger.is-open .mega-nav__trigger,
.mega-trigger:hover .mega-nav__trigger {
  color: #33519f;
}

.mega-nav__chevron {
  color: #33519f;
  width: 20px;
}

.mega-trigger.is-open .mega-nav__chevron,
.mega-trigger:hover .mega-nav__chevron {
  transform: rotate(180deg);
}

/* Panel */
.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 35px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  z-index: var(--z-header);
  width: max-content;
  max-width: max-content;
  height: max-content;
}

.mega-trigger.is-open .mega-panel,
.mega-trigger:hover .mega-panel {
  display: flex;
  align-items: flex-start;
}
.mega-panel__left {
  width: 245px;
  max-width: 245px;
  flex-shrink: 0;
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
}
.mega-panel__cat {
  display: flex;
  align-items: center;
  padding: 5px 15px;
  font-size: 18px;
  img {
    margin-right: 25px;
    width: 26px;
    height: 26px;
  }
}

.mega-panel__cat:hover,
.mega-panel__cat.is-active {
  background: var(--c-surface-2);
}

.mega-panel__cat svg {
  opacity: 0.5;
  flex-shrink: 0;
}
.mega-panel__right {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: var(--s-6);
}
.mega-panel.has-cols .mega-panel__right {
  display: block;
}
.mega-panel__cols {
  display: none;
}
.mega-panel__cols.is-active {
  display: block;
}
.mega-panel__header {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: 35px;
}
.mega-panel__title {
  font-size: 24px;
  font-weight: 700;
}
.mega-panel__see-all {
  color: #33519f;
}
.mega-panel__grid {
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.mega-panel__col {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-panel__col-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.mega-panel__col a {
  padding: 2px 0;
  transition: color var(--t);
}
.mega-panel__col a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 992px) {
  .header .btn-icon svg {
    width: 30px;
    height: 30px;
  }
}

.pp-atc-zone {
  width: 100%;
}

.plan-site {
  h2 {
    font-weight: bold;
  }
}

/* Plan du site */
.plan-du-site__list {
  padding: 0;
  list-style: none;
  line-height: 1.8;
}
.plan-du-site__list a {
  color: inherit;
}
.plan-du-site__list a:hover {
  color: #33519f;
}

/* Cart */
.section-title {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.nav-checkout .active {
  color: #33519f;
}

/* Checkout */
.il-checkout-s20 {
  a,
  a.btn-outline:hover {
    border-color: #33519f;
  }
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 768px) {
  .mega-nav {
    display: none;
  }
  .footer {
    img {
      width: 100%;
    }
  }
}

@media (max-width: 500px) {
  .border-categories {
    display: none;
  }
  .footer {
    img {
      width: 60%;
    }
  }
  .header {
    padding: 0 12px;
    .img-logo-nav,
    .img-logo-nav-apo {
      max-height: 100px;
    }
    .mobile-menu-toggle svg {
      height: 35px;
      width: 35px;
    }
  }
}
