*,
*::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: "Helvetica Neue", Helvetica, Arial, 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: 18px 12px 0; /* plus d'espace au-dessus du texte, moins entre le texte et la recherche */
  /* Bandeau dans le vert du site (#00514E, comme le header), texte en blanc, sans trait de séparation. */
  background-color: #00514E;
  color: #fff;
  .slogan {
    font-weight: 700;
    text-align: center;
  }
}

/* Header */
.header {
  padding: 15px 0;
  /* Logo fourni par Laura en version blanche (fond foncé attendu) — fond fixé à la couleur
     principale du site en ligne (#00514E) pour que le logo reste visible (2026-10-10). */
  background-color: #00514E;

  .bi-cart-fill {
    /* Blanc, pas la couleur principale : cette icône est maintenant sur le fond #00514E
       du header lui-même (voir background-color ci-dessus) — même couleur = invisible. */
    color: #fff;
    font-size: 30px;
  }
  .img-logo-nav {
    /* Largeurs reprises du site en ligne (230px à partir de 768px, jusqu'à 300px en dessous) */
    width: 230px;
    max-width: 100%;
    min-width: 0;
  }
  /* Logo + téléphone de l'enseigne sous le logo */
  .header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    svg {
      width: 22px;
      height: 22px;
    }
    &:hover {
      color: #fff;
      text-decoration: underline;
    }
  }
  .img-logo-nav-apo {
    width: 185px; /* logo Appli Couleurs en SVG : hauteur proche de celle du logo Graphi Loir (~57 px) */
    max-width: 100%;
    min-width: 0;
  }

  .header-search-input:focus {
    outline: none;
    border-color: var(--c-fg);
  }
  .header-search-form {
    max-width: 440px;
    margin-inline: auto;
    .btn {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      background-color: #FDC730;
      border-color: #FDC730;
      color: #fff;
      &:hover,
      &:focus {
        background-color: #FDC730;
        border-color: #FDC730;
      }
    }
  }
  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;
  }
}

/* Header sur grand écran : logos, recherche et panier regroupés au centre avec un espace réduit entre eux. */
@media (min-width: 992px) {
  /* Grille symétrique : logo Graphi Loir | recherche (centrée sur la page) | panier + Appli Couleurs. */
  .header > .container > .row {
    display: grid;
    grid-template-columns: 1fr 440px 1fr;
    column-gap: 40px;
    align-items: center;
    margin-inline: 0;
  }
  .header > .container > .row > [class*="col-"],
  .header > .container > .row > .header-right {
    width: auto;
    max-width: none;
  }
  .header > .container > .row > .header-search-wrap {
    min-width: 0;
  }
  .header > .container > .row > :first-child {
    justify-self: end;
  }
  .header-right {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: 40px;
  }
  .header-right > [class*="col-"] {
    width: auto;
    flex: 0 0 auto;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Écrans moyens : recherche plus étroite pour que logos et panier tiennent de chaque côté. */
  .header > .container > .row {
    grid-template-columns: 1fr 300px 1fr;
    column-gap: 24px;
  }
  .header-right {
    gap: 24px;
  }
}
@media (max-width: 991.98px) {
  .header-right {
    display: contents; /* sur mobile, panier et logo restent des colonnes Bootstrap du header */
  }
}

/* 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: #00514E;
  font-weight: bold;
}

/* Footer */
.footer {
  padding-top: 50px;
  padding-bottom: 35px;
  color: #fff;
  background-color: #00514E;
  font-size: 16px;
  line-height: 1.6;
  a {
    color: #fff;
  }
  img {
    width: 100%;
    max-width: 300px;
  }
  h2,
  h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
  }
  ul {
    padding: 0;
    list-style: none;
    line-height: 1.6;
    margin-bottom: 0;
  }
  a:hover {
    color: #fff;
    text-decoration: underline;
  }
  .copyright {
    border-top: 1px solid #dadada;
    background-color: #f7f7f7;
    text-align: center;
    font-size: 13px;
    padding: 15px 0;
  }
}

/* Pied de page : une seule ligne (maquette du 2026-10-14) — carte | Graphi Loir | liens | liens | Appli Couleurs | carte. */
.footer .footer-brands {
  padding-bottom: 5px;
}
.footer .footer-map {
  width: 190px;
  height: 190px;
}
.footer .footer-brand-logo {
  width: 170px;
  max-width: 100%;
}
.footer .footer-brand-logo--apo {
  width: 170px;
}
.footer .footer-brand-address {
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}
.footer .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 600;
}
.footer .footer-phone svg {
  width: 18px;
  height: 18px;
}
.footer .footer-links {
  font-size: 14px;
}
.footer .footer-links h2 {
  font-size: 14px;
}
@media (min-width: 992px) {
  .footer .footer-links {
    padding-inline: 30px;
  }
}

.copyright__cookies {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #444;
  font-size: 24px;
  line-height: 1;
}

.copyright {
  font-size: 13px;
  border-top: 1px solid #dadada;
  padding: 15px 0;
  background-color: #f7f7f7;
}

/* Accueil */
.newsletter {
  background-color: #00514E;
  padding: 16px 6px 12px 6px;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  a {
    padding-left: 15px;
    color: #fff;
  }
  .newsletter__social a {
    font-size: 18px;
  }
  button {
    background-color: #FDC730;
    border-color: #FDC730;
    color: #fff;
    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: #00514E;
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.background-categories-home {
  margin-top: 50px;
  h2.title {
    margin: 0;
  }
  .title {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    color: #50798d;
  }
}

.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: #00514E;
  }
}

/* Qui sommes-nous */
.nom-equipe {
  color: #00514E;
  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: #00514E;
    padding-top: 0px;
  }
  small {
    font-size: 12px;
  }
}

/* Checkout */
/* Couleur de marque uniquement : structure dans composent-generic.css */
.checkout-page {
  .card-header {
    color: #00514E;
  }
}

/* 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: 18px;
    font-weight: bold;
    color: #00514E;
    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;
}
/* Badges produit : hauteur 18px (images et pastilles texte) */
.badge-img,
.badge-div .badge {
  height: 18px;
}
.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: 16px;
  -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: #4b6e7e;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 242px;
  padding-block: 25px;
  margin-bottom: var(--s-8);
}

.category-header__title {
  margin-bottom: 0;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
}

.category-header__subtitle {
  margin-bottom: 25px;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  color: #fff;
}

.category-header__desc {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}

/* Bannières restées sur d'anciennes images claires : titre foncé */
.category-header[data-category-id="9701"],
.category-header--search {
  h1 {
    color: #444444;
  }
  .breadcrumb {
    color: #444444;
  }
}

/* Fil d'Ariane en blanc sur les bannières de catégorie (sauf bannières claires ci-dessus) */
.category-header:not([data-category-id="9701"]):not(.category-header--search) {
  .breadcrumb,
  .breadcrumb__link,
  .breadcrumb__current,
  .breadcrumb__sep {
    color: #fff;
  }
}

@media (max-width: 640px) {
  .category-header {
    padding-block: var(--s-6);
  }
}

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

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

  .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: 16px;
    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: #00514E;
    border-color: #00514E;
    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);
  }

  /* Couleur sans code couleur connu : même pastille ronde, avec les deux premières lettres */
  .color-swatch--text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
  }

  .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: #00514E;
      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: 16px;
}
.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: #00514E;
  border-color: #00514E;
}
.filter-option__label {
  font-size: var(--text-sm);
}

/* Mega menu */
.mega-nav {
  /* Barre de menu verte sous le header, comme sur graphiloir.fr */
  background-color: #00514E;
  z-index: calc(var(--z-header) - 1);
}

.mega-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 50px 10px;
  white-space: nowrap;
}

.mega-nav__top-link {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.mega-nav__trigger {
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 35px;
  font-size: 14px;
}

.mega-trigger {
  position: relative;
}

.mega-nav__top-link:hover,
.mega-trigger.is-open .mega-nav__trigger,
.mega-trigger:hover .mega-nav__trigger {
  color: #fff;
}

.mega-nav__chevron {
  color: #fff;
  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: #00514E;
}
.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);
}
/* Panneaux avec beaucoup de sections (5 et plus : Textile, Maison & Déco, Accessoires, Sports…) :
   les sections s'empilent dans 4 colonnes au lieu de s'aligner sur une seule ligne (défilement
   horizontal) ; une section n'est jamais coupée en deux. Les panneaux à 4 sections ou moins gardent
   la disposition en ligne. */
.mega-panel {
  max-width: calc(100vw - 100px);
}

.mega-panel__grid:has(.mega-panel__col:nth-child(5)) {
  display: block;
  column-count: 4;
  column-width: 190px;
  column-gap: 40px;
  width: min(880px, calc(100vw - 100px - 245px - 48px));
  .mega-panel__col {
    min-width: 0;
    margin-bottom: 24px;
    break-inside: avoid;
  }
}

.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: #00514E;
}

/* Cart */
.section-title {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.nav-checkout .active {
  color: #00514E;
}

/* Checkout */
.il-checkout-s20 {
  a,
  a.btn-outline:hover {
    border-color: #00514E;
  }
}

@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 {
      width: 170px;
    }
    .img-logo-nav-apo {
      width: 150px;
    }
    .mobile-menu-toggle svg {
      height: 35px;
      width: 35px;
    }
  }
}

/* Accueil — bandeau de réassurance sous la bannière */
.home-reassurance {
  /* Espace au-dessus = espace au-dessous : 30px de padding bas + 50px de marge du titre suivant */
  padding-top: 80px;
  padding-bottom: 30px;
}

.home-reassurance__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  color: #00514E;
  padding-top: 10px;
  padding-bottom: 10px;
  span {
    color: #444;
    font-weight: 700;
    font-size: 15px;
  }
}

.home-reassurance__icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
}

@media (min-width: 768px) {
  .home-reassurance__item + .home-reassurance__item {
    border-left: 1px solid #dadada;
  }
}

@media (max-width: 767px) {
  .home-reassurance__item {
    gap: 15px;
  }
}

/* Accueil — encarts Nos essentiels (texte au survol) */
.home-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.home-tile__text {
  position: absolute;
  inset: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  p {
    margin: 0;
    color: #000;
    font-size: 18px;
    line-height: 1.5;
  }
  .home-tile__title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.7;
  }
}

.home-tile:hover,
.home-tile:focus {
  box-shadow: 5px 5px 5px #e8e6e6;
}

.home-tile:hover .home-tile__text,
.home-tile:focus .home-tile__text {
  opacity: 1;
}


/* Accueil — "Ils nous font confiance" */
.home-trust {
  padding-top: 20px;
  padding-bottom: 40px;
}

.home-trust__intro {
  font-size: 16px;
  line-height: 25px;
  color: #222;
  margin-bottom: 40px;
}

.home-trust__cols {
  margin-top: 40px;
  font-size: 16px;
  color: #222;
  ul {
    padding-left: 18px;
  }
  li {
    margin-bottom: 4px;
  }
}

.home-trust__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.logo-marquee {
  /* 6 logos visibles à la fois (3 sur mobile) : largeur d'un logo = (largeur visible - espaces) / nombre */
  --logos-visible: 6;
  --logo-gap: 30px;
  container-type: inline-size;
  overflow: hidden;
}

@media (max-width: 767px) {
  .logo-marquee {
    --logos-visible: 3;
    --logo-gap: 20px;
  }
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee 35s linear infinite;
  &:hover {
    animation-play-state: paused;
  }
}

.logo-marquee__group {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  list-style: none;
  margin: 0;
  padding: 0 var(--logo-gap) 0 0;
  li {
    flex: 0 0 calc((100cqw - (var(--logos-visible) - 1) * var(--logo-gap)) / var(--logos-visible));
  }
  img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;
  }
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    overflow-x: auto;
  }
  .logo-marquee__track {
    animation: none;
  }
}

/* Page Signalétique */
.sign-page .page-title,
.about-page .page-title,
.contact-page .page-title {
  color: #00514E;
  font-size: 30px;
  font-weight: 500;
}

.sign-page .btn {
  width: auto;
  height: auto;
  padding: 10px 16px;
  font-size: 18px;
}

.sign-intro {
  margin: 0;
  font-weight: 500;
  color: #00514E;
  font-size: 22px;
}

.sign-tile {
  margin-bottom: 40px;
  text-align: center;
}

.sign-tile__title {
  margin: 12px 0 4px;
  font-size: 18px;
  font-weight: 500;
  color: #00514E;
}

.sign-tile__desc {
  margin: 0;
  font-size: 16px;
  color: #222;
}

.sign-tile__desc--spaced {
  margin-top: 20px;
}

.sign-tile__zoom {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  img {
    display: block;
    height: 245px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
  }
}

@media (max-width: 767px) {
  .sign-tile__zoom img {
    height: auto;
  }
}

.sign-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-out;
  &::backdrop {
    background: rgba(0, 0, 0, 0.8);
  }
  img {
    /* Taille d'origine si elle tient à l'écran, sinon réduite pour éviter toute barre de défilement */
    display: block;
    max-width: 96vw;
    max-height: 96vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* Titres en Poppins */
.title,
.page-title,
.sign-page .btn,
.sign-intro,
.sign-tile__title {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/* Page Qui sommes-nous ? (À propos) */
.about-page {
  font-size: 16px;
  color: #222;
  section {
    margin-bottom: 40px;
  }
  h2,
  h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }
  h3 {
    margin-top: 10px;
  }
  p {
    margin: 0 0 10px;
  }
  ul {
    margin: 0 0 10px;
    padding-left: 20px;
  }
}

/* Page Contact (maquette) */
.contact-page {
  .contact-intro {
    margin: 0;
    text-align: center;
    color: #a3a78d;
  }
  .contact-title {
    margin: 0 0 15px;
    font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #00514E;
  }
  .contact-block {
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
    p {
      margin: 0 0 8px;
    }
    a {
      color: #00514E;
      font-weight: 700;
    }
    iframe {
      display: block;
      margin-top: 15px;
    }
  }
  .contact-block__phones {
    line-height: 1.4;
  }
  .contact-form-wrapper > p {
    margin-bottom: 15px;
    font-size: 16px;
  }
  .input,
  .textarea {
    width: 100%;
    border-radius: 4px;
  }
  .mention-text-contact {
    font-size: 12px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Autocomplétion catégories/sous-catégories de la barre de recherche */
.header-search-wrap {
  position: relative;
}

.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  z-index: var(--z-header);
  color: #1e1e1e;
}

.search-suggest__item {
  padding: var(--s-2) var(--s-3);
  font-size: 16px;
  cursor: pointer;
}

.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: #e3eeed;
}

.search-suggest__item mark {
  background: none;
  color: #1e1e1e;
  font-weight: 700;
}

/* Plan du site : catégories et sous-catégories */
.plan-du-site__cat {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

/* Page produit : prix en vert du site */
.pp-prix-ht strong,
.pp-total-ht strong {
  color: #00514E;
}

/* Vignette signalétique avec lien (pas de zoom) */
a.sign-tile__zoom {
  cursor: pointer;
}

/* Récapitulatif de la page coordonnées : en-têtes du tableau */
.checkout-recap__th {
  padding: var(--s-2) var(--s-4);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: #00514E;
  border-bottom: 1px solid #dadada;
}

.checkout-recap__th--name {
  text-align: left;
}

.checkout-recap__th--total {
  text-align: right;
}

/* Plan du site : catégories réparties en colonnes équilibrées (plus de grands vides sous les petites catégories) */
.plan-du-site__cols {
  column-count: 3;
  column-gap: 30px;
}

.plan-du-site__group {
  break-inside: auto;
}

.plan-du-site__cat {
  break-after: avoid;
}

.plan-du-site__list li {
  break-inside: avoid;
}

@media (max-width: 991px) {
  .plan-du-site__cols {
    column-count: 2;
  }
}

@media (max-width: 575px) {
  .plan-du-site__cols {
    column-count: 1;
  }
}
