/* Gary Corp CSS chunk 5/6. styles.css kept as fallback. */
html[data-theme="dark"] .site-header .nav-link.is-active,
html[data-theme="dark"] #site-header .nav-link.is-active,
.site-body[data-theme="dark"] .site-header .nav-link:hover,
.site-body[data-theme="dark"] .site-header .nav-link.is-active {
  background: transparent !important;
  color: #ffffff !important;
  opacity: 0.72;
}

@media (max-width: 720px) {
  html[data-theme="dark"] .site-header .nav-link,
  html[data-theme="dark"] #site-header .nav-link,
  .site-body[data-theme="dark"] .site-header .nav-link {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* Mobile phone navigation and account button */
.mobile-menu-toggle { display: none; width: 38px; height: 38px; border: 0; background: transparent; color: var(--text); padding: 7px; cursor: pointer; }
.mobile-menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 999px; }
.account-trigger { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #111111; color: #ffffff; font-weight: 800; text-decoration: none; border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.account-trigger.is-connected { background: var(--accent); color: var(--accent-contrast); }
.account-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.account-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #111111; color: #ffffff; font-weight: 900; }
.account-avatar-large { width: 56px; height: 56px; font-size: 1.3rem; }
.account-layout { align-items: start; }
.account-actions { margin-top: 18px; }
html[data-theme="dark"] .account-trigger { background: #ffffff; color: #000000; border-color: rgba(255,255,255,.22); }
html[data-theme="dark"] .account-trigger.is-connected { background: #ffffff; color: #000000; }
@media (max-width: 720px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mobile-menu-toggle { display: inline-block; }
  .logo-button { justify-self: start; }
  .main-nav { display: none; grid-column: 1 / -1; width: 100%; padding: 10px 0 2px; border-top: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .nav-tools { justify-self: end; }
  .account-trigger { width: 36px; height: 36px; }
}


/* Header account/cart right alignment */
.nav-tools {
  justify-self: end;
  margin-left: auto;
}
@media (min-width: 721px) {
  .nav-tools {
    margin-right: -22px;
  }
}
@media (max-width: 720px) {
  .nav-tools {
    margin-right: -4px;
  }
}


/* Account page form polish */
.account-hero {
  padding-bottom: 22px;
}
.account-layout {
  display: block;
  max-width: 620px;
  margin-top: 0;
}
.account-card {
  width: 100%;
  padding: 30px;
}
.account-card .section-intro {
  max-width: 100%;
  margin-bottom: 22px;
}
.account-card .field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.account-card label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
}
.account-card input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
}
.account-card input::placeholder {
  color: var(--muted);
  opacity: 0.82;
}
.account-card input:focus {
  outline: 2px solid rgba(0, 128, 128, 0.28);
  outline-offset: 2px;
  border-color: var(--accent);
}
.account-actions {
  gap: 12px;
  margin-top: 24px;
}
.account-actions .btn {
  min-height: 46px;
}
@media (max-width: 720px) {
  .account-layout {
    max-width: none;
  }
  .account-card {
    padding: 22px;
  }
  .account-card .field-grid {
    grid-template-columns: 1fr;
  }
  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .account-actions .btn {
    width: 100%;
  }
}


/* Full-screen mobile menu frame */
@media (max-width: 720px) {
  .main-nav.is-open {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    width: 100vw;
    min-height: 100vh;
    padding: 86px 24px 32px;
    border-top: 0;
    background: #ffffff;
    color: #050505;
    overflow-y: auto;
  }
  .main-nav.is-open .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06) !important;
    color: #050505 !important;
    font-size: 1.05rem;
    font-weight: 800;
  }
  html[data-theme="dark"] .main-nav.is-open {
    background: #000000;
    color: #ffffff;
  }
  html[data-theme="dark"] .main-nav.is-open .nav-link {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }
  .mobile-menu-toggle {
    position: relative;
    z-index: 9999;
  }
  .site-header:has(.main-nav.is-open) {
    z-index: 10000;
  }
}

/* Gary Home dashboard */
.dashboard-main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.dashboard-hero {
  padding-left: 0;
  padding-right: 0;
}

.dashboard-page .portal-shell {
  margin-top: 8px;
}

.dashboard-login-gate {
  min-height: 360px;
  place-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.dashboard-gate-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 640px;
}

.dashboard-gate-copy .section-intro {
  margin: 0;
}

.dashboard-color-input {
  width: 100%;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.dashboard-page .portal-card {
  border-radius: 8px;
}

html[data-theme="dark"] .dashboard-login-gate,
html[data-theme="dark"] .dashboard-color-input {
  background: #050505;
  border-color: #202020;
}

@media (max-width: 720px) {
  .dashboard-main {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .dashboard-login-gate {
    min-height: 300px;
    padding: 28px 20px;
  }
}

/* Gary Home products - June 13, 2026 */
.product-card-unavailable { cursor: default; }
.product-card-unavailable:hover { transform: none; }
.product-card-media { position: relative; }
.product-card-media img[src$=".svg"] { padding: 34px; background: #f2f3f4; object-fit: contain; }
.product-coming-soon { position: absolute; top: 14px; right: 14px; padding: 7px 10px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; font-weight: 700; }
.product-card-unavailable .card-link-copy { color: var(--muted); }


/* Catalogue Gary Corp : présentation large et sections distinctes. */
.catalog-section {
  gap: 26px;
}

.catalog-section-secondary {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.catalog-heading {
  max-width: 760px;
}

.catalog-heading .eyebrow {
  margin-bottom: 10px;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.catalog-other-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  gap: 30px;
}

.catalog-product-grid .product-card,
.catalog-other-grid .product-card {
  padding: 28px;
  border-radius: 30px;
}

.catalog-product-grid .product-card-media img {
  height: 340px;
}

.catalog-other-grid .product-card-media img {
  height: 320px;
}

.catalog-product-grid .product-card h3,
.catalog-other-grid .product-card h3 {
  font-size: 1.35rem;
}

.catalog-product-grid .product-card p,
.catalog-other-grid .product-card p {
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 1180px) {
  :root {
    --max-width: 1320px;
  }
}

@media (max-width: 800px) {
  .catalog-product-grid,
  .catalog-other-grid {
    grid-template-columns: 1fr;
  }

  .catalog-product-grid .product-card,
  .catalog-other-grid .product-card {
    padding: 20px;
  }

  .catalog-product-grid .product-card-media img,
  .catalog-other-grid .product-card-media img {
    height: 280px;
  }
}


/* Portail employé Gary Corp */
.employee-portal-body { background: #f4f5f2; }
.employee-portal-main { width: min(calc(100% - 40px), 1320px); margin: 0 auto; padding: 42px 0 90px; display: grid; gap: 28px; }
.employee-hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); align-items: center; gap: 40px; padding: clamp(38px, 6vw, 82px); border-radius: 42px; background: #111315; color: white; overflow: hidden; position: relative; }
.employee-hero:before { content: ""; position: absolute; inset: auto -12% -55% 22%; height: 430px; background: radial-gradient(circle, rgba(232,255,63,.21), transparent 68%); }
.employee-hero-copy { position: relative; z-index: 2; }
.employee-hero .eyebrow { margin-top: 34px; color: #e8ff3f; }
.employee-hero h1 { max-width: 760px; margin: 14px 0 22px; font-size: clamp(3rem, 6.6vw, 6rem); line-height: .92; letter-spacing: -.065em; }
.employee-hero-copy > p:last-of-type { max-width: 680px; color: #aeb3b9; font-size: 1.08rem; line-height: 1.75; }
.employee-security-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #34383d; border-radius: 999px; color: #dce0e4; font-size: .78rem; font-weight: 700; }
.employee-security-pill i { width: 8px; height: 8px; border-radius: 50%; background: #56dc91; box-shadow: 0 0 0 5px rgba(86,220,145,.12); }
.employee-hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.employee-hero-points span { padding: 9px 13px; border-radius: 999px; background: #202327; color: #dce0e4; font-size: .78rem; }
.employee-hero-visual { min-height: 360px; display: grid; place-items: center; position: relative; }
.employee-hero-mark { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 42px; background: #e8ff3f; color: #111315; font-size: 5rem; font-weight: 900; transform: rotate(-7deg); box-shadow: 0 35px 90px rgba(0,0,0,.35); position: relative; z-index: 2; }
