/* ==========================================================================
   GLAMWEL LABORATOIRES - Styles communs (header, footer, sections, responsive)
   Extrait a l'identique de sourceHtml/index.html
   ========================================================================== */

:root {
  --black: #10100f;
  --charcoal: #22211f;
  --white: #ffffff;
  --ivory: #f7f4ee;
  --warm-white: #fcfaf6;
  --beige: #e9e1d5;
  --sand: #d8cbbb;
  --taupe: #9e9387;
  --gold: #a88958;
  --gold-light: #d7c39e;

  --beauty: #cda9a7;
  --skin: #d8c9b3;
  --hair: #8e715e;
  --fragrance: #a98b5d;
  --body: #c49177;
  --kids: #b7c7c0;

  --line: rgba(16, 16, 15, .14);
  --line-light: rgba(255, 255, 255, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --header-height: 72px;
  --page-padding: 20px;
  --max-width: 1500px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--ivory); }

body {
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold-light); color: var(--black); }

.container {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--max-width));
  margin-inline: auto;
}

.section { padding: 88px 0; }

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display {
  font-family: var(--serif);
  font-size: clamp(50px, 13vw, 118px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .85;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(43px, 9vw, 82px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .94;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 23px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
}

.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--gold); }

.btn-white {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.04);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-white:hover { background: var(--white); color: var(--black); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.arrow {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 350ms var(--ease);
}

.arrow::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.btn:hover .arrow, .text-link:hover .arrow { width: 27px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* HEADER */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  color: var(--white);
  transition: background 350ms ease, color 350ms ease, border-color 350ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  border-color: var(--line);
  background: rgba(247, 244, 238, .96);
  color: var(--black);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  height: 100%;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  line-height: 1;
}

.header-logo {
  display: block;
  width: 148px;
  height: auto;
  filter: invert(1) brightness(1.18);
  transition: filter 350ms ease, opacity 350ms ease;
}

.site-header.scrolled .header-logo,
.site-header.menu-active .header-logo {
  filter: none;
}

.desktop-nav { display: none; }
.header-actions { display: flex; justify-self: end; }

.icon-btn {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.55;
  fill: none;
}

.menu-lines { position: relative; width: 20px; height: 13px; }

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: top 300ms ease, transform 300ms ease;
}

.menu-lines::before { top: 2px; }
.menu-lines::after { top: 10px; }
.menu-active .menu-lines::before { top: 6px; transform: rotate(45deg); }
.menu-active .menu-lines::after { top: 6px; transform: rotate(-45deg); }

.cart-count {
  position: absolute;
  top: 5px;
  right: 1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 8px;
  font-weight: 600;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  z-index: 990;
  inset: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  padding: calc(var(--header-height) + 30px) var(--page-padding) 35px;
  background: var(--ivory);
  opacity: 0;
  transition: opacity 350ms ease, visibility 350ms ease;
}

.mobile-menu.active { visibility: visible; opacity: 1; }
.mobile-nav { width: 100%; }

.mobile-nav > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 0;
  font-family: var(--serif);
  font-size: clamp(37px, 10vw, 58px);
  line-height: 1;
}

.mobile-nav > a span {
  color: #857c71;
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mobile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: url("../images/glamwel.png") center / cover no-repeat;
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.is-static .hero-video { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.29) 0%, rgba(0,0,0,.08) 36%, rgba(0,0,0,.56) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 48px;
}

.hero-copy { max-width: 1050px; }

.hero-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.92);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.hero-brand span { color: var(--gold-light); }
.hero h1 { max-width: 950px; }

.hero-manifesto {
  max-width: 560px;
  margin-top: 23px;
  color: rgba(255,255,255,.83);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }

/* LAB INTRO */
.lab-intro { background: var(--warm-white); }
.lab-intro-grid { display: grid; gap: 45px; }
.lab-title { max-width: 850px; }
.lab-copy { max-width: 520px; }

.lab-copy p {
  color: #686159;
  font-size: 13px;
  line-height: 1.9;
}

.lab-copy p + p { margin-top: 17px; }
.lab-copy .text-link { margin-top: 26px; }

/* UNIVERSES */
.universes {
  padding-top: 25px;
  padding-bottom: 90px;
  background: var(--warm-white);
}

.universes-head { margin-bottom: 42px; }
.universes-grid { display: grid; gap: 6px; }

.universe-card {
  position: relative;
  min-height: 68svh;
  overflow: hidden;
  background: #ddd;
  color: var(--white);
}

.universe-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.universe-card:hover img { transform: scale(1.035); }

.universe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,0,0,.60) 100%);
}

.universe-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 23px;
}

.universe-index {
  display: block;
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.universe-name {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(41px, 11vw, 68px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .88;
}

.universe-prefix {
  display: block;
  margin-bottom: 5px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.universe-description {
  max-width: 390px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.80);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
}

.universe-tag {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.universe-beauty .universe-tag { background: var(--beauty); }
.universe-skin .universe-tag { background: var(--skin); }
.universe-hair .universe-tag { background: var(--hair); }
.universe-fragrance .universe-tag { background: var(--fragrance); }
.universe-body .universe-tag { background: var(--body); }
.universe-kids .universe-tag { background: var(--kids); }

/* MANIFESTO */
.manifesto { background: var(--black); color: var(--white); }
.manifesto-top { max-width: 980px; margin-bottom: 70px; }

.manifesto-top p {
  max-width: 660px;
  margin-top: 27px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
}

.pillars { display: grid; border-top: 1px solid var(--line-light); }

.pillar {
  padding: 32px 0;
  border-bottom: 1px solid var(--line-light);
}

.pillar-number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.pillar h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.pillar p {
  max-width: 370px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.8;
}

/* PRODUCTS */
.selection { background: var(--ivory); }

.selection-head {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 45px;
}

.filter-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--line);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background 250ms ease, color 250ms ease;
}

.filter-btn.active, .filter-btn:hover { background: var(--black); color: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 9px;
}

.product-card { min-width: 0; }
.product-card.hidden { display: none; }

.product-image {
  position: relative;
  aspect-ratio: .78;
  overflow: hidden;
  background: #e5ded4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.product-card:hover .product-image img { transform: scale(1.025); }

.placeholder-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  background: rgba(255,255,255,.76);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.product-content { padding-top: 15px; }

.product-world {
  margin-bottom: 5px;
  color: #786f65;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.product-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.05;
}

/* CAMPAIGN */
.campaign {
  position: relative;
  display: flex;
  min-height: 90svh;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.campaign-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 25%, rgba(0,0,0,.70) 100%);
}

.campaign-content {
  position: relative;
  z-index: 2;
  padding-bottom: 50px;
}

.campaign h2 {
  max-width: 900px;
  margin-bottom: 27px;
  font-family: var(--serif);
  font-size: clamp(50px, 13vw, 110px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .84;
}

/* TRUST */
.trust { background: var(--beige); }
.trust-head { max-width: 850px; margin-bottom: 50px; }
.trust-grid { display: grid; border-top: 1px solid var(--line); }

.trust-card {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.trust-card-number {
  display: block;
  margin-bottom: 20px;
  color: #846b48;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.trust-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.trust-card p {
  max-width: 330px;
  color: #686159;
  font-size: 12px;
  line-height: 1.8;
}

/* SOCIAL */
.social { background: var(--warm-white); }

.social-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 35px;
}

.social-link {
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--black);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.social-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ddd;
}

.social-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.social-card:hover img { transform: scale(1.04); }

/* NEWSLETTER */
.newsletter {
  padding: 92px 0;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.newsletter-inner { max-width: 760px; margin-inline: auto; }

.newsletter h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(44px, 10vw, 80px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .92;
}

.newsletter-copy {
  max-width: 490px;
  margin: 0 auto 35px;
  color: rgba(255,255,255,.57);
  font-size: 12px;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  max-width: 610px;
  margin-inline: auto;
  border-bottom: 1px solid rgba(255,255,255,.43);
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  padding: 17px 2px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--white);
  font-size: 12px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.40); }

.newsletter-form button {
  flex: 0 0 auto;
  padding-left: 18px;
  color: var(--white);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.newsletter-message {
  min-height: 20px;
  margin-top: 13px;
  color: var(--gold-light);
  font-size: 10px;
}

/* FOOTER */
.footer { background: var(--black); color: var(--white); }

.footer-top {
  display: grid;
  gap: 42px;
  padding: 52px 0;
  border-top: 1px solid var(--line-light);
}

.footer-logo-link { display: inline-block; }

.footer-logo-img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-signature {
  margin-top: 20px;
  color: rgba(255,255,255,.52);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  letter-spacing: .02em;
}

.footer-group h3 {
  margin-bottom: 18px;
  color: rgba(255,255,255,.37);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-group a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: rgba(255,255,255,.77);
  font-size: 11px;
}

.footer-group a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 21px 0 28px;
  border-top: 1px solid var(--line-light);
  color: rgba(255,255,255,.29);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* TOAST */
.toast {
  position: fixed;
  z-index: 3000;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 17px 18px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,.24);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(27px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* TABLET */
@media (min-width: 760px) {
  :root { --page-padding: 35px; --header-height: 78px; }
  .section { padding: 115px 0; }
  .header-logo { width: 172px; }
  .hero-inner { padding-bottom: 65px; }
  .lab-intro-grid { grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; }
  .universes-grid { grid-template-columns: 1fr 1fr; }
  .universe-card { min-height: 70svh; }
  .pillars { grid-template-columns: repeat(3, 1fr); }

  .pillar {
    min-height: 270px;
    padding: 38px 30px;
    border-right: 1px solid var(--line-light);
  }

  .pillar:first-child { padding-left: 0; }
  .pillar:last-child { border-right: 0; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 62px 15px; }
  .product-name { font-size: 27px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }

  .trust-card {
    min-height: 245px;
    padding: 35px 30px;
    border-right: 1px solid var(--line);
  }

  .trust-card:first-child { padding-left: 0; }
  .trust-card:last-child { border-right: 0; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .toast {
    right: 25px;
    bottom: 25px;
    left: auto;
    width: 360px;
  }
}

/* DESKTOP */
@media (min-width: 1120px) {
  :root { --page-padding: 50px; --header-height: 88px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .menu-toggle { display: none; }
  .header-logo { width: 184px; }

  .desktop-nav {
    display: flex;
    gap: 25px;
    align-items: center;
  }

  .desktop-nav a {
    position: relative;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms var(--ease);
  }

  .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hero-inner { padding-bottom: 78px; }
  .universes-grid { grid-template-columns: repeat(2, 1fr); }
  .universe-card { min-height: 82vh; }
  .universe-content { padding: 45px 45px; }
  .selection-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .campaign-content { padding-bottom: 80px; }
  .social-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .social-grid { grid-template-columns: repeat(6, 1fr); }
  .newsletter { padding: 125px 0; }
  .footer-top { grid-template-columns: 2.2fr 1fr 1fr 1fr; }
}

@media (min-width: 1500px) {
  :root { --page-padding: 64px; }
  .desktop-nav { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
