:root{
  --ivory:#FBF8F3;
  --travertine:#F0EBE3;
  --stone:#5F5B55;
  --champagne:#C7A46A;
  --white:#FFFFFF;
  --line:rgba(95,91,85,.16);
  --shadow:0 28px 80px rgba(41,34,28,.18);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Manrope",sans-serif;
  background:var(--ivory);
  color:var(--stone);
}

body.cart-open{
  overflow:hidden;
}

img{
  display:block;
  width:100%;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

h1,h2,h3{
  font-family:"Cormorant Garamond",serif;
  font-weight:400;
}

.shell{
  width:min(1280px,calc(100% - 48px));
  margin-inline:auto;
}

.kicker{
  display:inline-block;
  font-size:9px;
  letter-spacing:4px;
  text-transform:uppercase;
  color:var(--champagne);
}

.kicker.light{
  color:rgba(255,255,255,.88);
}

/* Header */
.site-header{
  position:absolute;
  top:0;
  right:0;
  left:0;
  z-index:20;
  color:#fff;
}

.nav{
  min-height:112px;
  display:grid;
  grid-template-columns:220px 1fr 220px;
  gap:30px;
  align-items:center;
}

.brand{
  width:max-content;
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1;
}

.brand-script{
  font-family:"Cormorant Garamond",serif;
  font-style:italic;
  font-size:18px;
  color:var(--champagne);
}

.brand-name{
  font-family:"Cormorant Garamond",serif;
  font-size:32px;
  letter-spacing:8px;
}

.brand-tagline{
  margin-top:8px;
  font-size:6px;
  letter-spacing:4px;
  text-transform:uppercase;
}

.main-nav{
  display:flex;
  justify-content:center;
  gap:clamp(26px,4vw,60px);
}

.main-nav a,
.cart-trigger,
.menu-button{
  font-size:9px;
  letter-spacing:3px;
  text-transform:uppercase;
}

.cart-trigger{
  justify-self:end;
  border:0;
  background:none;
  color:inherit;
}

.cart-count{
  display:inline-grid;
  min-width:22px;
  height:22px;
  margin-left:8px;
  padding:0 6px;
  place-items:center;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  font-size:8px;
  letter-spacing:0;
}

.menu-button{
  display:none;
  border:0;
  background:none;
  color:inherit;
}

/* Hero */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:#fff;
  background:url("../img/hero-maison-jadem.jpg") center/cover no-repeat;
}

.hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(30,22,15,.45),
    rgba(30,22,15,.08) 42%,
    rgba(30,22,15,.30)
  );
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:1000px;
  padding-top:90px;
  text-align:center;
}

.hero h1{
  margin-top:24px;
  font-size:clamp(76px,10vw,150px);
  line-height:.88;
  letter-spacing:-4px;
}

.hero-divider{
  width:min(300px,65vw);
  margin:38px auto 28px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:16px;
  align-items:center;
  color:var(--champagne);
}

.hero-divider span{
  height:1px;
  background:currentColor;
}

.hero-divider i{
  font-style:normal;
}

.hero p{
  max-width:650px;
  margin:auto;
  font-size:12px;
  font-weight:300;
  line-height:2;
  letter-spacing:2px;
}

.hero-actions{
  margin-top:34px;
  display:flex;
  justify-content:center;
  gap:38px;
  flex-wrap:wrap;
}

.hero-actions a{
  padding-bottom:7px;
  border-bottom:1px solid rgba(255,255,255,.65);
  font-size:9px;
  letter-spacing:2.4px;
  text-transform:uppercase;
}

.scroll-cue{
  position:absolute;
  z-index:3;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
}

.scroll-cue span{
  width:18px;
  height:18px;
  border-right:1px solid #fff;
  border-bottom:1px solid #fff;
  transform:rotate(45deg);
}

/* Signature */
.signature{
  padding:150px 0 170px;
  background:var(--ivory);
}

.signature-inner{
  text-align:center;
}

.signature blockquote{
  max-width:1000px;
  margin:25px auto 0;
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(54px,7vw,98px);
  line-height:1.03;
}

.signature strong{
  display:block;
  margin-top:18px;
  font-weight:400;
  color:var(--champagne);
}

/* Collection */
.collection{
  padding:130px 0 150px;
  background:#fff;
}

.section-heading{
  padding-bottom:70px;
  text-align:center;
}

.section-heading h2,
.personalisation h2,
.story h2{
  margin-top:18px;
  font-size:clamp(52px,6vw,88px);
  line-height:1;
}

.product-feature{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);
  gap:80px;
  align-items:end;
}

.product-image{
  min-height:680px;
  overflow:hidden;
  background:var(--travertine);
}

.product-image img{
  height:100%;
  min-height:680px;
  object-fit:cover;
}

.product-copy{
  padding-bottom:30px;
}

.product-copy h3{
  margin:10px 0 18px;
  font-size:68px;
  line-height:1;
}

.product-copy p{
  max-width:430px;
  font-size:13px;
  line-height:1.9;
  color:rgba(95,91,85,.75);
}

.product-copy strong{
  display:block;
  margin:24px 0;
  font-family:"Cormorant Garamond",serif;
  font-size:30px;
  font-weight:400;
  color:var(--champagne);
}

.add-cart-button{
  display:inline-block;
  padding:16px 22px;
  border:0;
  background:var(--stone);
  color:#fff;
  font-size:9px;
  letter-spacing:2.3px;
  text-transform:uppercase;
  transition:background .25s ease,transform .25s ease;
}

.add-cart-button:hover{
  background:var(--champagne);
  transform:translateY(-1px);
}

/* Personnalisation */
.personalisation{
  padding:150px 0;
  background:var(--travertine);
}

.personalisation-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:90px;
  align-items:center;
}

.personalisation-image{
  min-height:680px;
  overflow:hidden;
}

.personalisation-image img{
  min-height:680px;
  height:100%;
  object-fit:cover;
}

.personalisation-copy p{
  max-width:520px;
  margin:28px 0 34px;
  font-size:14px;
  line-height:2;
  color:rgba(95,91,85,.75);
}

.button{
  display:inline-block;
  padding:17px 24px;
  background:var(--stone);
  color:#fff;
  font-size:9px;
  letter-spacing:2.3px;
  text-transform:uppercase;
}

/* Story */
.story{
  padding:160px 0;
  background:var(--ivory);
}

.story-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:110px;
}

.story-copy{
  padding-top:45px;
}

.story-copy p{
  margin-bottom:24px;
  font-size:14px;
  line-height:2.05;
  color:rgba(95,91,85,.75);
}

/* Footer */
.site-footer{
  padding:85px 0;
  background:#e9e3da;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:60px;
}

.footer-brand{
  display:inline-flex;
  flex-direction:column;
}

.footer-brand span{
  font-family:"Cormorant Garamond",serif;
  font-size:30px;
  letter-spacing:3px;
}

.footer-brand small{
  font-size:7px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--champagne);
}

.footer-grid strong{
  font-family:"Cormorant Garamond",serif;
  font-size:22px;
  font-weight:400;
}

.footer-grid p,
.footer-grid a{
  display:block;
  margin-top:7px;
  font-size:10px;
  line-height:1.9;
}

/* Tiroir panier */
.cart-overlay{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(33,27,22,.34);
  backdrop-filter:blur(3px);
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease,visibility .3s ease;
}

.cart-overlay.open{
  opacity:1;
  visibility:visible;
}

.cart-drawer{
  position:fixed;
  top:0;
  right:0;
  z-index:90;
  width:min(470px,100%);
  height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--ivory);
  box-shadow:var(--shadow);
  transform:translateX(100%);
  transition:transform .38s ease;
}

.cart-drawer.open{
  transform:translateX(0);
}

.cart-drawer-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding:34px 30px 26px;
  border-bottom:1px solid var(--line);
}

.cart-drawer-header h2{
  margin-top:7px;
  font-size:43px;
  line-height:1;
}

.cart-close{
  border:0;
  background:none;
  color:var(--stone);
  font-family:"Cormorant Garamond",serif;
  font-size:38px;
  line-height:1;
}

.cart-drawer-content{
  flex:1;
  overflow-y:auto;
  padding:24px 30px;
}

.cart-empty{
  padding:50px 0;
  text-align:center;
  font-size:12px;
  color:rgba(95,91,85,.68);
}

.cart-item{
  display:grid;
  grid-template-columns:115px 1fr;
  gap:20px;
  padding:0 0 24px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line);
}

.cart-item img{
  width:115px;
  height:150px;
  object-fit:cover;
}

.cart-item-info h3{
  margin:7px 0 10px;
  font-size:31px;
  line-height:1;
}

.cart-item-info > strong{
  font-family:"Cormorant Garamond",serif;
  font-size:24px;
  font-weight:400;
  color:var(--champagne);
}

.cart-item-actions{
  margin-top:22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.quantity-control{
  display:grid;
  grid-template-columns:34px 34px 34px;
  min-height:34px;
  border:1px solid var(--line);
}

.quantity-control button{
  border:0;
  background:#fff;
  color:var(--stone);
}

.quantity-control span{
  display:grid;
  place-items:center;
  background:#fff;
  font-size:11px;
}

.remove-item{
  border:0;
  border-bottom:1px solid currentColor;
  background:none;
  color:rgba(95,91,85,.65);
  font-size:8px;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

.cart-drawer-footer{
  padding:24px 30px 30px;
  border-top:1px solid var(--line);
  background:#fff;
}

.cart-subtotal{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:20px;
}

.cart-subtotal span{
  font-size:9px;
  letter-spacing:2px;
  text-transform:uppercase;
}

.cart-subtotal strong{
  font-family:"Cormorant Garamond",serif;
  font-size:31px;
  font-weight:400;
  color:var(--champagne);
}

.cart-checkout-button{
  display:block;
  width:100%;
  padding:17px 22px;
  background:var(--stone);
  color:#fff;
  text-align:center;
  font-size:9px;
  letter-spacing:2.3px;
  text-transform:uppercase;
}

.cart-continue{
  display:block;
  width:100%;
  margin-top:16px;
  border:0;
  background:none;
  color:var(--stone);
  font-size:8px;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.cart-toast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:110;
  transform:translate(-50%,20px);
  padding:13px 18px;
  background:var(--stone);
  color:#fff;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
  font-size:10px;
  letter-spacing:1px;
}

.cart-toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

/* Responsive */
@media (max-width:900px){
  .shell{
    width:min(1280px,calc(100% - 28px));
  }

  .nav{
    min-height:90px;
    grid-template-columns:1fr auto 1fr;
  }

  .brand{
    grid-column:2;
  }

  .brand-name{
    font-size:27px;
  }

  .cart-trigger{
    grid-column:3;
    grid-row:1;
  }

  .menu-button{
    display:block;
    grid-column:1;
    grid-row:1;
    justify-self:start;
  }

  .main-nav{
    display:none;
    position:absolute;
    top:90px;
    left:14px;
    right:14px;
    padding:12px 20px 22px;
    background:rgba(251,248,243,.98);
    color:var(--stone);
  }

  .main-nav.open{
    display:block;
  }

  .main-nav a{
    display:block;
    padding:14px 0;
    border-bottom:1px solid var(--line);
    font-family:"Cormorant Garamond",serif;
    font-size:26px;
    letter-spacing:0;
    text-transform:none;
  }

  .product-feature,
  .personalisation-grid,
  .story-grid{
    grid-template-columns:1fr;
    gap:45px;
  }

  .product-image,
  .product-image img,
  .personalisation-image,
  .personalisation-image img{
    min-height:520px;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:600px){
  .hero h1{
    font-size:68px;
    letter-spacing:-2px;
  }

  .hero p{
    font-size:10px;
    letter-spacing:1.2px;
  }

  .hero-actions{
    flex-direction:column;
    align-items:center;
    gap:18px;
  }

  .signature,
  .collection,
  .personalisation,
  .story{
    padding:100px 0;
  }

  .signature blockquote{
    font-size:52px;
  }

  .section-heading{
    padding-bottom:45px;
  }

  .product-copy h3{
    font-size:54px;
  }

  .product-image,
  .product-image img,
  .personalisation-image,
  .personalisation-image img{
    min-height:410px;
  }

  .cart-trigger{
    font-size:0;
  }

  .cart-trigger::before{
    content:"Panier";
    font-size:8px;
    letter-spacing:1.5px;
  }

  .cart-count{
    margin-left:5px;
  }

  .cart-drawer-header,
  .cart-drawer-content,
  .cart-drawer-footer{
    padding-left:20px;
    padding-right:20px;
  }

  .cart-item{
    grid-template-columns:90px 1fr;
    gap:15px;
  }

  .cart-item img{
    width:90px;
    height:125px;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}


/* Collection avec plusieurs bijoux */
.collection .product-feature + .product-feature{
  margin-top:130px;
  padding-top:130px;
  border-top:1px solid var(--line);
}

.product-feature-reverse{
  grid-template-columns:minmax(280px,.55fr) minmax(0,1.45fr);
}

.product-feature-reverse .product-image{
  grid-column:2;
  grid-row:1;
}

.product-feature-reverse .product-copy{
  grid-column:1;
  grid-row:1;
}

@media (max-width:900px){
  .collection .product-feature + .product-feature{
    margin-top:80px;
    padding-top:80px;
  }

  .product-feature-reverse{
    grid-template-columns:1fr;
  }

  .product-feature-reverse .product-image,
  .product-feature-reverse .product-copy{
    grid-column:auto;
    grid-row:auto;
  }
}


/* Accès compte dans le header */
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
}

.account-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:inherit;
  text-decoration:none;
  font-size:8px;
  letter-spacing:1.7px;
  text-transform:uppercase;
  white-space:nowrap;
}

.account-link:hover{
  color:#C7A46A;
}

.account-icon{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border:1px solid rgba(95,91,85,.28);
  border-radius:50%;
  font-size:8px;
}

@media(max-width:760px){
  .header-actions{
    gap:10px;
  }

  .account-link span:last-child{
    display:none;
  }
}
