/* ACHYLL storefront refresh: compact brand navigation and homepage sections. */
:root {
  --achyll-ink: #15171a;
  --achyll-muted: #676b72;
  --achyll-line: #e7e9ec;
  --achyll-soft: #f4f5f6;
  --achyll-blue: #0b69f6;
  --achyll-radius: 14px;
}

/* Header */
#header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
}

#header .header-bottom {
  border-bottom: 1px solid var(--achyll-line);
  background: #fff;
}

#header .header-bottom__container {
  width: 100%;
  max-width: none;
  padding-right: clamp(16px, 3.2vw, 52px);
  padding-left: clamp(16px, 3.2vw, 52px);
}

#header .header-bottom__row {
  position: relative;
  display: flex !important;
  width: 100%;
  min-height: 78px;
  margin: 0;
  flex-wrap: nowrap;
  gap: clamp(18px, 2.5vw, 42px);
}

#header .header-bottom__logo {
  position: absolute;
  top: 50%;
  left: 0;
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 auto;
  transform: translateY(-50%);
}

#header .header-bottom__h1 {
  line-height: 0;
}

#header .achyll-logo {
  display: inline-flex;
  width: 166px;
  align-items: center;
  color: var(--achyll-ink);
}

#header .achyll-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#header .achyll-header-main {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(58vw, 900px);
  min-width: 0;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 42px);
  transform: translate(-50%, -50%);
}

#header .achyll-header-main > * { min-width: 0; }

#header .achyll-brand-navigation {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

#header .achyll-brand-navigation__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.2vw, 58px);
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .achyll-brand-navigation a,
#header .achyll-brand-navigation summary {
  color: var(--achyll-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .015em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

#header .achyll-brand-navigation a:hover,
#header .achyll-brand-navigation summary:hover,
#header .achyll-brand-navigation a:focus-visible,
#header .achyll-brand-navigation summary:focus-visible {
  color: var(--achyll-blue);
}

#header .achyll-brand-navigation__other {
  position: relative;
}

#header .achyll-brand-navigation__other summary {
  list-style: none;
}

#header .achyll-brand-navigation__other summary::-webkit-details-marker {
  display: none;
}

#header .achyll-brand-navigation__other summary::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

#header .achyll-brand-navigation__dropdown {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--achyll-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 20, 28, .12);
  transform: translateX(-50%);
}

#header .achyll-brand-navigation__dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 13px;
  text-transform: none;
}

#header .achyll-brand-navigation__dropdown a:hover {
  background: var(--achyll-soft);
}

#header #_desktop_ps_searchbar {
  position: relative;
  display: flex !important;
  width: 46px;
  min-width: 46px;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 46px;
}

#header .achyll-header-main #_desktop_ps_searchbar {
  margin-left: 0 !important;
}

#header .ps-searchbar {
  position: relative;
  width: 46px;
}

#header .ps-searchbar__form {
  position: relative;
  display: flex;
  width: 46px;
  height: 42px;
  align-items: center;
}

#header .ps-searchbar__magnifier {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 11px;
  color: var(--achyll-ink);
  font-size: 22px;
  pointer-events: none;
  transform: translateY(-50%);
}

#header .ps-searchbar__input {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 44px;
  height: 42px;
  padding: 0 8px 0 43px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease, border-color .2s ease;
}

#header .ps-searchbar__input:focus {
  width: min(260px, 34vw);
  border-color: var(--achyll-line);
  background: #fff;
  color: var(--achyll-ink);
  cursor: text;
  outline: 2px solid transparent;
}

#header .achyll-header-actions {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  transform: translateY(-50%);
}

#header .achyll-header-actions > * {
  margin: 0 !important;
}

#header .achyll-header-actions .header-block__action-btn {
  display: inline-flex;
  min-width: 30px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--achyll-ink);
  text-decoration: none;
}

#header .achyll-header-actions .header-block__icon {
  color: currentColor;
  font-size: 22px;
}

#header .achyll-header-actions .header-block__badge {
  background: var(--achyll-ink);
  color: #fff;
}

#header .achyll-header-actions .language-selector,
#header .achyll-header-actions .currency-selector {
  font-size: 12px;
}

/* Homepage entry point */
#content.page-content--home {
  padding: 0;
  overflow-x: clip;
}

#content.page-content--home .ps-imageslider,
#content.page-content--home .ps-customtext {
  display: none !important;
}

.achyll-home-categories {
  padding: clamp(44px, 6vw, 82px) 0 40px;
  background: #fff;
}

.achyll-home-categories .container,
.achyll-home-services .container {
  width: min(100% - 40px, 1320px);
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.achyll-section-heading {
  margin-bottom: 28px;
}

.achyll-section-heading h2 {
  margin: 0 0 8px;
  color: var(--achyll-ink);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.achyll-section-heading p:not(.achyll-eyebrow) {
  margin: 0;
  color: var(--achyll-muted);
  font-size: 15px;
}

.achyll-eyebrow {
  margin: 0 0 12px;
  color: var(--achyll-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.achyll-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.achyll-category-card {
  position: relative;
  display: flex;
  min-height: 246px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #edf0f3;
  border-radius: var(--achyll-radius);
  background: #f5f6f7;
  color: var(--achyll-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.achyll-category-card:hover,
.achyll-category-card:focus-within {
  box-shadow: 0 14px 36px rgba(21, 23, 26, .10);
  color: var(--achyll-ink);
  transform: translateY(-3px);
}

.achyll-category-card--apple { background: #f2f4f6; }
.achyll-category-card--samsung { background: #f0f2f5; }
.achyll-category-card--google { background: #f4f4f3; }
.achyll-category-card--other { background: #f4f5f6; }

.achyll-category-card__device {
  position: absolute;
  top: 25px;
  right: 28px;
  width: 78px;
  height: 138px;
  border: 6px solid #22272d;
  border-radius: 19px;
  background: linear-gradient(145deg, #555d65, #171b20 72%);
  box-shadow: 0 14px 22px rgba(20, 24, 28, .18);
  transform: rotate(8deg);
}

.achyll-category-card__device::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 22px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .55);
  content: "";
  transform: translateX(-50%);
}

.achyll-category-card__device::after {
  position: absolute;
  right: 8px;
  bottom: 11px;
  left: 8px;
  height: 40px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(11, 105, 246, .55), rgba(255, 255, 255, .02));
  content: "";
}

.achyll-device--apple { transform: rotate(-8deg); }
.achyll-device--apple::after { background: linear-gradient(135deg, #7e8d9c, #292d34); }
.achyll-device--samsung { border-radius: 14px; }
.achyll-device--samsung::after { background: linear-gradient(135deg, #687784, #15191e); }
.achyll-device--google { border-radius: 21px; }
.achyll-device--google::before { top: 12px; left: 17px; width: 42px; height: 8px; background: #65717e; transform: none; }
.achyll-device--other { width: 70px; height: 125px; transform: rotate(12deg); }

.achyll-category-card__name {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -.025em;
}

.achyll-category-card__action {
  position: relative;
  z-index: 1;
  color: #525861;
  font-size: 12px;
  font-weight: 600;
}

.achyll-category-card--other {
  cursor: pointer;
  list-style: none;
}

.achyll-category-card--other summary {
  display: flex;
  min-height: 196px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  list-style: none;
}

.achyll-category-card--other summary::-webkit-details-marker { display: none; }

.achyll-category-card__dropdown {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 7px;
  border: 1px solid var(--achyll-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 23, 26, .12);
}

.achyll-category-card__dropdown a {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--achyll-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.achyll-category-card__dropdown a:hover { background: var(--achyll-soft); }

/* Live product modules remain connected to the shop catalogue. */
#content.page-content--home .ps-featuredproducts,
#content.page-content--home .ps-newproducts {
  padding: 40px 0 clamp(48px, 6vw, 80px);
}

#content.page-content--home .module-products {
  width: min(100% - 40px, 1320px);
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

#content.page-content--home .section-title {
  margin-bottom: 24px;
  color: var(--achyll-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -.04em;
}

#content.page-content--home .module-products__list {
  margin: 0;
}

#content.page-content--home .module-products__list .product-miniature {
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #fff;
}

#content.page-content--home .module-products__buttons {
  margin-top: 26px;
}

#content.page-content--home .module-products__buttons .btn {
  border-radius: 999px;
  font-weight: 600;
}

.achyll-home-services {
  padding: 34px 0;
  border-top: 1px solid var(--achyll-line);
  background: #f7f8f9;
}

.achyll-home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.achyll-home-services__grid > a {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #fff;
  color: var(--achyll-ink);
  text-decoration: none;
}

.achyll-home-services__grid > a:hover { border-color: #c9d9f6; }

.achyll-service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--achyll-blue);
  font-size: 18px;
  font-weight: 700;
}

.achyll-home-services strong,
.achyll-home-services small {
  display: block;
}

.achyll-home-services strong { font-size: 13px; font-weight: 650; }
.achyll-home-services small { margin-top: 4px; color: var(--achyll-muted); font-size: 11px; }

@media (max-width: 1199.98px) {
  #header .achyll-header-main { width: min(53vw, 640px); }
  #header .header-bottom__row { gap: 18px; }
  #header .achyll-logo { width: 145px; }
  #header .achyll-brand-navigation__list { gap: clamp(16px, 2.4vw, 28px); }
  #header .achyll-brand-navigation a,
  #header .achyll-brand-navigation summary { font-size: 12px; }
  #header .achyll-header-actions { gap: 8px; }
}

@media (max-width: 767.98px) {
  #header { position: relative; }
  #header .header-bottom__container { padding-right: 16px; padding-left: 16px; }
  #header .header-bottom__row {
    position: static;
    display: flex !important;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 0;
  }
  #header .header-bottom__logo {
    position: relative;
    top: auto;
    left: auto;
    margin-right: auto !important;
    transform: none;
  }
  #header .achyll-logo { width: 134px; }
  #header .achyll-header-main {
    position: relative;
    top: auto;
    left: auto;
    order: 5;
    width: 100%;
    flex: 1 0 100%;
    gap: 14px;
    transform: none;
  }
  #header .achyll-brand-navigation {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #header .achyll-brand-navigation::-webkit-scrollbar { display: none; }
  #header .achyll-brand-navigation__list {
    width: max-content;
    justify-content: flex-start;
    gap: 26px;
    padding: 8px 2px 4px;
  }
  #header .achyll-brand-navigation a,
  #header .achyll-brand-navigation summary { font-size: 12px; }
  #header #_desktop_ps_searchbar { width: 38px; min-width: 38px; flex-basis: 38px; }
  #header .ps-searchbar { width: 38px; }
  #header .ps-searchbar__form { width: 38px; }
  #header .ps-searchbar__input:focus { width: min(220px, 64vw); }
  #header .achyll-header-actions {
    position: relative;
    top: auto;
    right: auto;
    gap: 5px;
    transform: none;
  }
  #header .achyll-header-actions .header-block__action-btn { min-width: 28px; }
  #header .achyll-header-actions .header-block__icon { font-size: 20px; }
  .achyll-home-categories { padding: 36px 0 22px; }
  .achyll-home-categories .container,
  .achyll-home-services .container,
  #content.page-content--home .module-products {
    width: min(100% - 32px, 1320px);
  }
  .achyll-section-heading { margin-bottom: 20px; }
  .achyll-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .achyll-category-card { min-height: 202px; padding: 16px; }
  .achyll-category-card__device { top: 20px; right: 20px; width: 58px; height: 105px; border-width: 5px; border-radius: 16px; }
  .achyll-category-card__name { font-size: 17px; }
  .achyll-category-card__action { font-size: 11px; }
  .achyll-category-card--other summary { min-height: 168px; }
  #content.page-content--home .ps-featuredproducts,
  #content.page-content--home .ps-newproducts { padding: 28px 0 42px; }
  .achyll-home-services { padding: 20px 0; }
  .achyll-home-services__grid { grid-template-columns: 1fr; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* ---- Jointure banniere Fold / section iPhone Duo --------------------------
   La grille de #content espace toutes les sections de 40 px, et .achyll-duo-hero
   ajoute 12 px : entre deux bandes pleine largeur cela faisait une bande blanche
   de 52 px, signalee par le client le 29/09. On colle les deux blocs ; le gris de
   la section Duo garde ses 54 px de marge interieure, donc rien n'est serre. */
#content.page-content--home > .achyll-fold-banner + .achyll-duo-hero {
  margin-top: -40px;
}
