@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Announcement bar */
.announcement-bar {
  padding: 10px 0;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  a {
    font-weight: 700;
    color: var(--orange);
    &:hover {
      text-decoration: underline;
    }
  }
}

/* Header */
.header {
  .ico-google {
    width: auto;
    height: 36px;
    max-width: 140px;
    object-fit: contain;
  }
  .logo {
    max-height: 80px;
    width: 160px;
    height: auto;
    max-width: 100%;
    min-width: 0;
  }
  .element-header {
    .link-element {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      padding: 4px;
    }
    .cart-label {
      font-size: 15px;
      text-align: center;
    }
    .img-element {
      width: 40px;
      height: 40px;
    }
    .cart-count {
      position: absolute;
      right: 20px;
      bottom: -2px;
      min-width: 20px;
      height: 20px;
      padding: 0 4px;
      border-radius: 9px;
      font-weight: 700;
      line-height: 18px;
      text-align: center;
      color: #fff;
      background-color: var(--orange);
    }
  }
  .header-search-input:focus {
    outline: none;
    border-color: var(--c-fg);
  }
  .header-search-form {
    position: relative;
  }
  .header-search-form .btn {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    color: black;
    background-color: transparent;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    .bi {
      display: flex;
      line-height: 1;
    }
  }
  input {
    border-radius: 20px;
    border: 1px solid #000;
    padding: 11px;
    &::placeholder {
      font-size: 16px;
    }
  }
}

/* Panier du header : le compteur se cale sur l'icône. */
.header-cart {
  position: relative;
}
.mega-nav {
  position: relative;
  z-index: calc(var(--z-header) - 1);
  background-color: #f2f2f2;
}

/* Pas de position ici : le panneau se cale sur la barre pleine largeur (.mega-nav), donc contre le bord gauche de l'écran. */
.mega-nav__bar {
  padding: 0;
}

.mega-nav__list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  > li {
    flex: 0 0 auto;
    padding: 10px 0 5px;
  }
  > .mega {
    position: static;
  }
}

.mega-nav__trigger,
.mega-nav__link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  padding: 0 30px 5px;
  &:hover,
  &[aria-expanded="true"] {
    border-bottom: 4px solid var(--orange);
    padding-bottom: 5px;
  }
}

.mega-nav__burger {
  width: 20px;
  height: 20px;
}

/* Tablette et mobile : la barre « Parcourir la boutique » + liens disparaît, le même panneau s'ouvre
   depuis le bouton burger de l'en-tête (data-mega-open). */
@media (max-width: 991.98px) {
  .mega-nav {
    height: 0;
    margin: 0;
    background: none;
  }
  .mega-nav__bar {
    height: 0;
    border: 0;
  }
  .mega-nav__list > li:not(.mega) {
    display: none;
  }
  .mega-nav__trigger {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* Tablette et mobile (moins de 992 px) : l'en-tête reste collé en haut de page, sans transition, avec la même ombre que la barre collante de l'ordinateur.
   Burger, logo, loupe, téléphone et panier ; la recherche se réduit à la loupe, qui ouvre le panneau de recherche. */
@media (max-width: 991.98px) {
  header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 5px 20px -3px rgba(0, 0, 0, 0.25);
  }
}

.header-phone {
  display: none;
}
@media (max-width: 991px) {
  .header .header-search-form:not(.is-open) .header-search-input {
    display: none;
  }
  .header .header-search-form:not(.is-open) {
    justify-content: flex-end;
    min-height: 32px;
  }
  .header .header-search-form:not(.is-open) .btn {
    position: static;
    transform: none;
  }
  .header-search-wrap {
    padding: 0;
  }
  .element-header {
    padding-left: 0;
  }
  .header .element-header .cart-count {
    right: 15px;
    bottom: -5px;
  }
  .header .logo {
    width: auto;
    height: 30px;
    max-height: 30px;
  }
  .header-phone {
    display: flex;
    align-items: center;
  }
  /* Burger de 30 px ; téléphone, loupe et panier : 18 px. */
  .header .mobile-menu-toggle svg {
    width: 30px;
    height: 30px;
  }
  .header .header-phone img,
  .header .element-header .img-element {
    width: 18px;
    height: 18px;
  }
  .header .header-search-form .btn {
    width: 30px;
    height: 30px;
    border: 0;
  }
  .header .header-search-form .btn .bi {
    font-size: 18px;
  }
}

/* Menu ouvert : la barre de navigation passe devant tout le site (en-tête, bandeau d'annonce, cookies exclus),
   avec un fond sombre sur toute la page sous le panneau. */
.mega-nav:has(.mega-panel.show) {
  z-index: 2000;
}

.mega-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

body:has(.mega-panel.show) .mega-overlay {
  display: block;
}

/* Page figée tant que le panneau est ouvert ; seule sa liste défile. */
html:has(.mega-panel.show) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* Le panneau ne s'ouvre qu'au clic (pas au survol). */
.mega-nav .dropdown:hover > .mega-panel:not(.show) {
  display: none;
}

/* Panneau en première position : du haut au bas de l'écran, collé à gauche, devant tout le reste. */
.mega-nav .mega-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 450px;
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
  border: none;
  border-radius: 0;
  box-shadow: 7px 10px 10px rgba(57, 56, 56, 0.77);
  &.show {
    display: flex;
    flex-direction: column;
    max-width: 400px;
  }
}

.mega-panel__top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 30px 50px 40px 50px;
}

.mega-panel__logo {
  width: 117px;
  height: 58px;
}

.mega-panel__close {
  display: flex;
  padding: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.mega-panel__tabs {
  display: flex;
  align-items: center;
  background-color: #f2f2f2;
  border-radius: 25px;
  margin: 0 50px;
}

.mega-panel .mega-panel__tab {
  border: none;
  border-radius: 25px;
  font-weight: 500;
  width: 100%;
  height: 50px;
  background-color: #f2f2f2;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  line-height: 0;
  font-size: 16px;
  &.active {
    background-color: var(--orange);
    color: #fff;
    font-weight: bold;
    border-radius: 25px;
    &:hover {
      width: 110%;
      z-index: 99;
      position: relative;
      transition: 0.5s ease;
    }
  }
}

.mega-panel__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.tab-pane {
  display: none;
  &.active {
    display: block;
  }
}

.mega-panel__universes {
  padding: 30px 10px 30px 50px;
}

.mega-panel__universe,
.mega-panel__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 20px;
  line-height: 1.5;
  letter-spacing: 1px;
  padding-right: 0;
  color: #000;
  &:hover {
    background-color: #f2f2f2;
    border-radius: 23px;
    font-weight: 500;
  }
}

/* Sous-catégories : s'affichent par-dessus tout le panneau (onglets et liste), avec un bouton retour. */
.mega-panel__children {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0 0 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  ul {
    list-style: none;
    padding: 0;
  }
  li a,
  .mega-panel__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1px;
    padding-right: 0;
    &:hover {
      background-color: #f2f2f2;
      border-radius: 23px;
      font-weight: 500;
    }
  }
}

.is-open > .mega-panel__children {
  display: block;
}

/* Catégorie courante, sous le logo et la croix : flèche de retour + nom. */
.mega-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0px 50px 20px 50px;
  border-bottom: 1px solid var(--orange);
}

.mega-panel__lists {
  padding: 20px 10px 30px 50px;
}

.img-return-menu {
  width: 26px;
  height: 26px;
}

.mega-panel__back {
  display: flex;
  padding: 6px;
  color: var(--orange);
  background: none;
  border: 0;
  cursor: pointer;
}

.mega-panel__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Étoile et pictogrammes des rubriques : toujours visibles, juste après le libellé. */
.mega-panel .menu-icon {
  flex: none;
  width: 26px;
  margin: 0 auto 0 15px;
}

/* Flèches du menu : image visible seulement au survol (ou au focus clavier) de la ligne. */
.mega-panel .position-menu-image {
  flex: none;
  width: 26px;
  height: 12px;
  margin-left: 15px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.mega-panel a:hover .position-menu-image,
.mega-panel a:focus-visible .position-menu-image,
.mega-panel__universe:hover .position-menu-image,
.mega-panel__universe:focus-visible .position-menu-image {
  opacity: 1;
}

.mega-panel a,
.mega-panel__title {
  color: #000;
}

.mega-panel__title {
  margin: 10px 0;
  font-weight: 700;
  font-size: 16px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: var(--z-header);
  min-width: 220px;
  overflow-y: auto;
  margin: 0;
  list-style: none;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-md);
}

.dropdown-menu.show,
.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 3px 20px;
  color: var(--c-fg);
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--c-surface-2);
}

@media (max-width: 992px) {
  .header .btn-icon svg {
    width: 30px;
    height: 30px;
  }
  .home-assets {
    img {
      width: 35px;
    }
  }
}

/* Footer */
.footer {
  padding-top: 30px;
  margin-top: 30px;
  color: #000;
  background-color: #f2f2f2;
  font-weight: 500;
  h3 {
    font-size: 14px;
    font-weight: bold;
  }
  .icon {
    width: 20px;
    margin-right: 8px;
  }
  p {
    font-weight: 500;
  }
  ul {
    padding: 0;
    list-style: none;
    line-height: 1.7;
    margin-bottom: 0;
    li {
      display: flex;
      align-items: center;
    }
  }

  /* Colonnes de liens repliables sur mobile, réseaux sociaux et logos partenaires. */
  .lien-footer .collapse:not(.show) {
    display: none;
  }
  .dropdown-mobile-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
  }
  .nav-contact {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    li {
      padding: 0;
    }
  }
  .logo {
    max-width: 80px;
    max-height: 40px;
    margin-bottom: 10px;
  }
  .logo-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    img {
      width: 100px;
      height: 100%;
    }
  }
  .lien-footer {
    nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      @media (max-width: 500px) {
        flex-direction: column;
        > div {
          width: 100%;
        }
      }
    }
  }
}

.copyright {
  background-color: #f2f2f2;
  border-top: 1px solid black;
  padding: 20px 12px;
  p {
    font-weight: 500;
  }
  .copyright-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    @media (min-width: 768px) {
      justify-content: flex-end;
    }
  }
}

@media screen and (max-width: 500px) {
  .footer {
    & .lien-footer {
      nav {
        gap: 10px;
      }
    }
    .logo-footer {
      justify-content: space-between;
      img {
        width: 75px;
      }
    }
    .nav-contact {
      justify-content: space-evenly;
    }
  }
}

.carousel-section {
  margin-top: 50px;
}
/* Accueil : sélection du moment, deux lignes de six cases (l'encart Best-sellers + onze produits). */
.home-bestsellers {
  margin-top: 50px;
}
.product-grid.home-bestsellers-grid:not(.liste-produits) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  /* 30 px entre deux lignes : 24 px de marge basse des cases + 6 px d’écart. */
  row-gap: 6px;
}
@media (min-width: 768px) {
  .product-grid.home-bestsellers-grid:not(.liste-produits) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    row-gap: 6px;
  }
}
@media (min-width: 992px) {
  .product-grid.home-bestsellers-grid:not(.liste-produits) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.home-bestsellers .product-card__title {
  font-weight: 500;
}
/* Accueil : titres de section en noir. */
.home-bestsellers .section-title,
.home-section .section-title {
  color: black;
}
.encart-bestsellers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background-color: var(--orange);
  border-radius: 12px;
  color: white;
  box-shadow: 0 2px 4px #777;
  span {
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 8px;
  }
  p {
    font-size: 17px;
    font-weight: 200;
    margin-bottom: 16px;
  }
  .btn {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    font-weight: 400;
    padding: 6px 12px;
    margin: 5px;
  }
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.section-title {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 27px;
  margin-bottom: 25px;
  /* Les traits de part et d'autre du titre ne s'affichent qu'à partir de 768 px. */
  @media (min-width: 768px) {
    &::before,
    &::after {
      content: "";
      display: inline-block;
      vertical-align: middle;
      width: 8rem;
      height: 1px;
      margin: 0 1rem;
      background: #000;
      border-radius: 2px;
    }
  }
}
.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: var(--orange);
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
}

.border-categories {
  background-color: var(--orange);
  height: 1px;
  margin-top: 15px;
}

.title-catalogue-home {
  font-size: 22px;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--orange);
}

/* Mentions légales */
.mentions-legales-page {
  h1 {
    font-size: 27px;
  }
  h4 {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 8px;
  }
  a {
    color: var(--orange);
  }
  a:hover {
    color: var(--orange);
  }
}

/* Barre de recherche : pas de croix d'effacement native du navigateur */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Autocomplétion catégories/sous-catégories de la barre de recherche */
.header-search-wrap {
  position: relative;
}
/* Récapitulatif des produits (page coordonnées) : titres de colonnes */
.checkout-recap__th {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f6f6f6;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.checkout-recap__th--product {
  text-align: left;
}
.checkout-recap__th--total {
  text-align: right;
}

/* Checkout */
.checkout-page {
  .card-header {
    color: var(--orange);
  }
  /* Récapitulatif : les quatre colonnes restent sur une ligne jusqu'à 768 px (le prix reste visible) :
     marges réduites, photo plus petite, nom tronqué. */
  @media (max-width: 768px) {
    /* Titres de colonnes retirés de l'affichage (lisibles par les lecteurs d'écran). */
    .checkout-recap__head {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }
    .il-checkout-s10,
    .il-checkout-s14,
    .il-checkout-s15 {
      padding: 8px;
    }
    .il-checkout-s12 {
      width: 60px;
      height: 60px;
    }
    .il-checkout-s13 {
      max-width: 30vw;
    }
  }
  /* 500 px et moins : chaque article passe sur deux lignes (le produit, puis prix unitaire, quantité et total
     avec leur titre) pour garder des textes lisibles ; totaux en deux colonnes. */
  @media (max-width: 600px) {
    .checkout-recap {
      tbody tr {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
      }
      tbody td:first-child {
        grid-column: 1 / -1;
        padding-bottom: 0;
      }
      tbody td[data-label] {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 8px 12px 12px;
        text-align: left;
        font-size: 15px;
        white-space: normal;
      }
      tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 700;
        color: #6b7280;
      }
      tbody td[data-label]:last-child {
        text-align: right;
        align-items: flex-end;
      }
      tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      tfoot td {
        padding: 10px 12px;
      }
    }
    .il-checkout-s13 {
      max-width: none;
      white-space: normal;
    }
  }
}
.il-checkout-s20 {
  a,
  a.btn-outline:hover {
    border-color: var(--orange);
  }
}
.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;
}

/* Cart */

.text-cart {
  color: #ccc;
}

@media (max-width: 500px) {
  .border-categories {
    display: none;
  }
  .header {
    .mobile-menu-toggle svg {
      height: 30px;
      width: 30px;
    }
  }
}

/* Accueil */
.home-hero {
  position: relative;
  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
  }
  .home-hero-text {
    position: absolute;
    top: 25%;
    left: 12%;
  }
  .home-hero-title {
    font-size: 45px;
    font-weight: bold;
    line-height: 1.5;
    em {
      display: block;
      font-style: italic;
      font-weight: 400;
    }
  }
}

.home-assets {
  margin-top: 15px;
  p {
    text-align: center;
    margin-left: 15px;
    font-weight: 400;
  }
}

.home-selection {
  h1 {
    font-size: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    span {
      font-style: italic;
      color: var(--orange);
    }
  }
  p {
    font-size: 15px;
  }
}

.home-section {
  margin-top: 30px;
  h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .text-seo {
    column-count: 2;
    column-gap: 30px;
    text-align: justify;
    h3 {
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 0;
    }
    a {
      color: var(--orange);
      font-weight: bold;
    }
  }
}

/* Les indispensables : fond bleu très clair sur toute la largeur de la page. */
.home-section.indispensables {
  padding: 30px 0;
  background-color: #f5fcfe;
  padding-bottom: 0;
}

/* Avis clients : marge basse de 20 px (cette section uniquement). */
.home-section.home-reviews {
  padding-bottom: 20px;
}

@media screen and (max-width: 1200px) {
  .home-section .text-seo {
    column-count: 1;
  }
  .footer {
    .lien-footer {
      nav {
        gap: 30px;
      }
    }
  }
}

.theme-card {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid #e9e3dd;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s ease;
  h3 {
    color: var(--orange);
  }
  &:hover {
    border-color: var(--orange);
  }
}

/* ------- LES INDISPENSABLES ------- */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  height: 240px;

  .tile-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    background-position: center;
    padding-top: 20px;
    background-size: cover;
    h3 {
      font-size: 19px;
      color: #000;
      font-weight: 500;
      border-bottom: 0;
      padding-bottom: 5px;
      padding-top: 5px;
      background-color: rgba(255, 255, 255, 0.7);
    }
    p {
      display: none;
    }
  }
  &[href]:hover {
    .tile-body {
      display: flex;
      height: 200px;
      padding: 10px;
      text-align: center;
      margin-left: 20px;
      margin-top: 20px;
      margin-right: 20px;
      background-color: rgba(255, 255, 255, 0.7);
      p {
        display: block;
        font-size: 16px;
        font-weight: 500;
      }
      h3 {
        display: none;
      }
    }
  }
}

/* Tuiles « Les indispensables » : la photo est toujours une image de fond. */
.tile-mug {
  background-image: url("https://static3.promotool.net/Org/M912x391469.webp");
  background-size: cover;
  background-position: center;
}
.tile-tote {
  background-image: url("https://static3.promotool.net/Org/M912x391472.webp");
  background-size: cover;
  background-position: center;
}
.tile-stylo {
  background-image: url("https://static3.promotool.net/Org/M912x391471.webp");
  background-size: cover;
  background-position: center;
}
.tile-carnet {
  background-image: url("https://static3.promotool.net/Org/M912x391464.webp");
  background-size: cover;
  background-position: center;
}
.tile-bouteille {
  background-image: url("https://static3.promotool.net/Org/M912x391463.webp");
  background-size: cover;
  background-position: center;
}
.tile-lunch {
  background-image: url("https://static3.promotool.net/Org/M912x391467.webp");
  background-size: cover;
  background-position: center;
}
.tile-tshirt {
  background-image: url("https://static3.promotool.net/Org/M912x391473.webp");
  background-size: cover;
  background-position: center;
}
.tile-sac {
  background-image: url("https://static3.promotool.net/Org/M912x391470.webp");
  background-size: cover;
  background-position: center;
}

.tile-noel {
  background-image: url("https://static3.promotool.net/Org/M912x391462.webp");
  background-size: cover;
  background-position: center;
}
.tile-eco {
  background-image: url("https://static3.promotool.net/Org/M912x391465.webp");
  background-size: cover;
  background-position: center;
}
.tile-salons {
  background-image: url("https://static3.promotool.net/Org/M912x391466.webp");
  background-size: cover;
  background-position: center;
}
.tile-france {
  background-image: url("https://static3.promotool.net/Org/M912x391468.webp");
  background-size: cover;
  background-position: center;
}

/* Mobile : les tuiles sont étroites, le texte complet reprend toute la tuile (défilement si besoin). */
@media (max-width: 575px) {
  .tile[href]:hover .tile-body {
    height: 100%;
    margin: 0;
    overflow-y: auto;
    p {
      font-size: 12px;
    }
  }
}

.tile-wide {
  .tile-body {
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    h3 {
      color: white;
      font-size: 30px;
      background-color: transparent;
      padding-top: 20px;
    }
    p {
      display: block;
      font-size: 14px;
      padding-top: 5px;
      text-align: center;
      color: white;
    }
  }
  .btn {
    width: 155px;
    border: 1px solid #000;
    font-weight: 700;
    font-size: 12px;
    color: #333;
    background-color: #fff;
    border-radius: 5px;
    padding: 6px 12px;
    &:hover {
      color: #333;
      background-color: #e6e6e6;
      border-color: #adadad;
    }
  }
  .text-blue {
    color: #6ca4ff;
  }
  .text-red {
    color: red;
  }
}

/* Accueil : quatre accès aux guides, texte sur photo de fond. */
.guide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background-position: center;
  text-align: center;
  position: relative;
  h2 {
    color: #000;
    position: absolute;
    right: 7%;
    font-weight: 700;
    top: 7vh;
    font-size: 21px;
    max-width: 235px;
    text-align: center;
  }
}
.guide-goodies {
  background-image: url("https://static3.promotool.net/Org/M912x391461.webp");
  height: 265px;
  background-size: cover;
}
.guide-perso {
  background-image: url("https://static3.promotool.net/Org/M912x391458.webp");
  height: 265px;
  background-size: cover;
}
.guide-conseils {
  background-image: url("https://static3.promotool.net/Org/M912x391459.webp");
  height: 265px;
  background-size: cover;
}
.guide-qui {
  background-image: url("https://static3.promotool.net/Org/M912x391460.webp");
  height: 265px;
  background-size: cover;
}

.home-press {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 30px;
  img {
    width: auto;
    opacity: 0.38;
    filter: grayscale(100%);
    transition:
      opacity 0.25s ease,
      filter 0.25s ease;
    max-width: 110px;
    height: 26px;
    object-fit: contain;
    &:hover {
      opacity: 1;
      filter: grayscale(0%);
    }
  }
}

@media (max-width: 768px) {
  .home-title {
    font-size: 24px;
  }

  .guide-link {
    background-repeat: no-repeat;
    h2 {
      right: 0%;
    }
  }
}

@media (min-width: 501px) and (max-width: 768px) {
  .home-hero .home-hero-text {
    top: 20%;
    left: 8%;
  }
  .home-hero .home-hero-title {
    font-size: 55px;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .home-hero .home-hero-text {
    top: 18%;
  }
  .home-hero .home-hero-title {
    font-size: 25px;
  }
}

/* Contact */
.contact-page {
  h2 {
    font-size: 14px;
  }
  .form-group {
    flex-direction: column;
    align-items: initial;
    margin-top: 15px;
  }
  label {
    font-weight: bold;
  }

  .contact-form-wrapper {
    padding: 32px;
    background: var(--blanc);
    border: 1px solid var(--gris-bord);
    border-radius: 14px;
    h2 {
      margin: 0 0 9px;
      font-size: 24px;
      font-weight: 700;
      color: #000;
    }
    .sous-titre {
      margin: 0 0 24px;
      font-size: 14px;
      color: var(--gris-texte);
    }
    label {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--noir);
      &.required::after {
        content: " *";
        color: var(--orange);
      }
    }
    .envoi {
      display: flex;
      font-weight: 700;
      background: var(--orange);
      border-radius: 999px;
      transition: background 0.15s ease;
      justify-content: center;
      width: 100%;
      margin-top: 20px;
      &:hover {
        background: var(--orange-dark);
      }
    }
    .input,
    .textarea {
      padding: 7px 14px;
      font-size: 14px;
      color: var(--noir);
      border: 1px solid var(--gris-bord);
      border-radius: 8px;
      transition: border-color 0.15s ease;
      @media (max-width: 767px) {
        font-size: 16px;
      }
    }
  }
  small {
    font-size: 12px;
  }

  .bandeau-contact {
    background-color: #faf7f4;
    border-radius: 14px;
    padding: 20px 12px;
    @media (min-width: 992px) {
      background-image: url("https://static3.promotool.net/Org/contact-hero.523693xE71022.webp");
      background-repeat: no-repeat;
      background-position: right center;
      background-size: auto 100%;
      position: relative;
      &::after {
        content: "";
        position: absolute;
        inset: 0 0 0 auto;
        aspect-ratio: 614 / 320;
        border-radius: 0 14px 14px 0;
        background: linear-gradient(90deg, #faf7f4 0%, rgba(250, 247, 244, 0) 30%);
        pointer-events: none;
      }
    }
    .text {
      position: relative;
      z-index: 1;
      padding: 45px 50px;
    }
    h1 {
      font-size: 36px;
      font-weight: 700;
      line-height: 1.2;
      margin: 0 0 16px;
      border-bottom: 3px solid var(--orange);
      padding-bottom: 5px;
      color: black;
    }
    p {
      font-size: 16.5px;
      line-height: 1.6;
      color: #6b6b6b;
      max-width: 480px;
      margin: 0;
    }
  }

  .encart {
    background: #f2f2f2;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
    h2 {
      font-size: 19px;
      margin: 20px 0;
      font-weight: bold;
      color: #333;
    }
    p {
      font-size: 14px;
      line-height: 1.5;
      color: var(--gris-texte);
      margin: 0 0 4px;
    }
    .icone {
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 18px;
      svg {
        width: 40px;
        height: 40px;
        stroke: var(--orange);
      }
    }
    .lien {
      display: inline-block;
      margin-top: 12px;
      font-weight: 600;
      font-size: 15px;
      color: var(--orange);
      border-bottom: 2px solid transparent;
      transition: border-color 0.15s ease;
      &:hover {
        border-color: var(--orange);
      }
    }
  }
  .encarts .encart {
    height: 100%;
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      border-color 0.18s ease;
    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(35, 35, 35, 0.08);
      border-color: var(--orange);
    }
    &.faq {
      .icone svg {
        stroke: #1f8a20;
      }
      .lien {
        color: #1f8a20;
      }
    }
  }
  /* Dernier encart (« Pourquoi Magic4media ? ») : titre en graisse 500. */
  .infos .encart:last-child h2 {
    font-weight: 500;
  }
  .infos .encart {
    margin-bottom: 16px;
    padding: 24px;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid var(--gris-bord);
    .adresse {
      display: flex;
      gap: 12px;
      margin-bottom: 14px;
      font-size: 14px;
      line-height: 1.5;
      p {
        color: var(--noir);
        margin: 0;
      }
      svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 2px;
        fill: none;
        stroke: var(--orange);
      }
      .etiquette {
        display: block;
        margin-bottom: 2px;
        font-size: 12px;
        color: #888;
      }
    }
    /* La carte occupe toute la largeur de l'encart, sans marge intérieure. */
    iframe {
      display: block;
      border: 0;
      width: calc(100% + 48px);
      max-width: none;
      margin: 0 -24px -24px;
    }
    .garanties {
      gap: 8px;
      span {
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 600;
        color: #1f8a20;
        background: var(--vert-10);
        border-radius: 999px;
      }
    }
  }

  /* Tablette : encarts plus serrés (l'adresse e-mail doit tenir dans la carte). */
  @media (max-width: 992px) {
    .encart {
      padding: 30px 12px;
    }
    .encart .lien {
      overflow-wrap: anywhere;
    }
  }
  /* Mobile : bandeau et formulaire moins aérés. */
  @media (max-width: 768px) {
    .bandeau-contact {
      .text {
        padding: 24px 20px;
      }
      h1 {
        font-size: 28px;
      }
    }
    .contact-form-wrapper {
      padding: 20px;
    }
  }
}

/* Accueil : le bandeau des atouts colle au visuel d’en-tête. */
.home-hero + .home-assets {
  margin-top: 0;
}

/* Accueil : titres des deux blocs de texte de présentation. */
.home-section:has(> .container > .text-seo) .section-title {
  font-size: 28px;
}

/* Confirmation de demande de devis : message centré. */
.alert.alert-quote-sent {
  /* .alert (composent-generic.css, chargé après main.css) est en flex : sélecteur doublé pour passer en block */
  display: block;
  text-align: center;
}
