/* =========================================================
   MAY CLASS — Feuille de style partagée
   Palette : blanc chic + or flashy + touches de noir
   ========================================================= */

/* ============ TOKENS ============ */
:root{
  --white:#FFFFFF;
  --paper:#F8F6F1;
  --ink:#171412;
  --ink-soft:#2B2622;
  --gold:#CDA434;
  --gold-bright:#F4D77B;
  --gold-deep:#9C7A1A;
  --gold-tint:#FBF3DC;
  --gold-line: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  --max:1180px;
  --radius:16px;
  --ff-display:'Fraunces', serif;
  --ff-body:'Work Sans', sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============ RESET ============ */
*,*::before,*::after{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
ul{list-style:none;}
h1,h2,h3{font-family:var(--ff-display); font-weight:600; line-height:1.1; letter-spacing:-0.01em;}
.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}

/* ============ LAYOUT ============ */
.section-inner{max-width:var(--max); margin:0 auto; padding:5rem 1.5rem;}
.section-inner--tight{padding-top:3rem; padding-bottom:3rem;}
.eyebrow{
  font-size:0.78rem; letter-spacing:0.2em; text-transform:uppercase;
  font-weight:600; color:var(--accent, var(--gold-deep)); margin-bottom:0.85rem;
}
.section-text{margin-top:1rem; max-width:54ch; font-weight:300; color:rgba(23,20,18,0.66);}
.signature{font-style:italic; color:var(--gold-deep);}

.reveal{opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.is-visible{opacity:1; transform:translateY(0);}

.gold-rule{
  width:64px; height:3px; border-radius:2px; background:var(--gold-line); margin:0 0 1.25rem;
}
.gold-rule--center{margin:0 auto 1.5rem;}

/* ============ BRUSH ACCENT (signature, écho du logo) ============ */
.brush{
  position:absolute; z-index:0; pointer-events:none;
  background:var(--gold-line);
  filter: blur(0.5px);
  opacity:0.85;
  border-radius:62% 38% 55% 45% / 48% 60% 40% 52%;
}
.brush--hero{ width:420px; height:220px; right:-90px; top:18%; opacity:0.6; transform:rotate(-6deg); }
.brush--banner{ width:280px; height:150px; left:-60px; top:10%; opacity:0.5; transform:rotate(8deg); }

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(23,20,18,0.08);
  transition: box-shadow .35s ease, padding .35s ease;
}
.site-header.scrolled{box-shadow:0 8px 24px rgba(23,20,18,0.06);}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--max); margin:0 auto; padding:0.85rem 1.5rem; gap:1.5rem;
}
.header-left{display:flex; align-items:center; gap:2.5rem;}

.logo{display:flex; align-items:center; gap:0.7rem;}
.logo img{height:46px; width:auto; display:block;}
.logo-text{font-family:var(--ff-display); font-size:1.3rem; font-weight:600; letter-spacing:0.01em; color:var(--ink);}
.logo-text em{font-style:italic; color:var(--gold-deep);}

/* ---- Nav + dropdowns ---- */
.main-nav{display:flex; align-items:center; gap:0.5rem; font-size:0.95rem; font-weight:500;}
.nav-item{position:relative;}
.nav-link{
  display:flex; align-items:center; gap:0.35rem;
  padding:0.6rem 0.9rem; border-radius:999px;
  transition: color .25s ease, background .25s ease;
}
.nav-link:hover, .nav-link:focus-visible{color:var(--gold-deep); background:var(--gold-tint);}
.nav-chevron{width:10px; height:10px; transition: transform .25s ease;}
.nav-item.open .nav-chevron, .nav-item:hover .nav-chevron{transform:rotate(180deg);}

.dropdown{
  position:absolute; top:calc(100% + 6px); left:0; min-width:200px;
  background:var(--white); border:1px solid rgba(23,20,18,0.08); border-radius:12px;
  box-shadow:0 16px 36px rgba(23,20,18,0.12);
  padding:0.5rem; display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index:50;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown{opacity:1; visibility:visible; transform:translateY(0);}
.dropdown a{padding:0.55rem 0.8rem; border-radius:8px; font-size:0.9rem; transition: background .2s ease, color .2s ease;}
.dropdown a:hover{background:var(--gold-tint); color:var(--gold-deep);}
.dropdown .dropdown-all{border-top:1px solid rgba(23,20,18,0.08); margin-top:2px; padding-top:0.6rem; font-weight:600; color:var(--gold-deep);}

/* ---- Header actions ---- */
.header-actions{display:flex; align-items:center; gap:0.7rem;}
.cart-btn{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%; border:1.5px solid var(--ink);
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.cart-btn:hover{background:var(--ink); color:var(--white); transform:translateY(-2px);}
.cart-count{
  position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 4px;
  background:var(--gold); color:var(--ink); font-size:0.7rem; font-weight:700;
  border-radius:999px; display:flex; align-items:center; justify-content:center;
}
.cart-count.bump{animation:bump .35s ease;}
@keyframes bump{0%{transform:scale(1);}45%{transform:scale(1.4);}100%{transform:scale(1);}}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:42px; height:42px; border-radius:50%; border:1.5px solid var(--ink);
}
.nav-toggle span{display:block; width:18px; height:1.5px; background:var(--ink); transition:transform .3s ease, opacity .3s ease;}
.nav-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* ============ HERO (Accueil) ============ */
.hero{
  position:relative; overflow:hidden;
  background:var(--paper);
  padding:6rem 1.5rem 5rem;
}
.hero-inner{max-width:var(--max); margin:0 auto; position:relative; z-index:2;}
.hero-title{font-size:clamp(2.8rem, 9vw, 5.6rem); font-style:italic; font-weight:500;}
.hero-tagline{margin-top:1.5rem; max-width:42ch; font-size:1.1rem; font-weight:300; color:rgba(23,20,18,0.68);}
.hero-actions{display:flex; gap:1rem; margin-top:2.5rem; flex-wrap:wrap;}

/* ============ PAGE BANNER (autres pages) ============ */
.page-banner{
  position:relative; overflow:hidden;
  background:var(--paper);
  padding:4.5rem 1.5rem 3.5rem;
}
.page-banner-inner{max-width:var(--max); margin:0 auto; position:relative; z-index:2;}
.page-banner h1{font-size:clamp(2.4rem, 6vw, 4rem); font-style:italic; font-weight:500;}
.page-banner .section-text{margin-top:1rem;}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  padding:0.8rem 1.6rem; border-radius:999px;
  font-size:0.8rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  border:1.5px solid transparent;
  background:var(--gold-line); background-size:160% 160%; background-position:0% 50%;
  color:var(--ink);
  transition: background-position .4s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover{background-position:100% 50%; transform:translateY(-2px); box-shadow:0 10px 24px rgba(205,164,52,0.35);}
.btn--add{width:100%;}
.btn--submit{padding:0.9rem 2.2rem;}
.btn--whatsapp{background:#25D366; border-color:#25D366; color:#fff; width:100%; padding:0.9rem; box-shadow:none;}
.btn--whatsapp:hover{background:#1fb558; box-shadow:none;}
.btn--link{background:none; border:none; padding:0; font-size:0.8rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-deep); text-decoration:underline; transform:none; box-shadow:none;}
.btn--link:hover{transform:none; box-shadow:none; color:var(--gold);}

/* ============ SECTIONS / SUBSECTIONS ============ */
.section{background:var(--white);}
.section--paper{background:var(--paper);}
.subsection + .subsection{margin-top:4.5rem;}
.subsection-head h2{font-size:clamp(1.7rem, 4vw, 2.4rem);}

/* ============ GRID + CARDS ============ */
.grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:1.75rem; margin-top:2.5rem;}
.grid--sub{grid-template-columns:repeat(4, 1fr);}
.card{
  background:var(--white);
  border:1px solid rgba(23,20,18,0.06);
  border-radius:var(--radius);
  overflow:hidden;
  opacity:0; transform:translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s ease;
}
.card.is-visible{opacity:1; transform:translateY(0);}
.card:hover{box-shadow:0 18px 38px rgba(23,20,18,0.1); transform:translateY(-6px);}

.card-media{
  position:relative; aspect-ratio:4/5;
  background-color:var(--gold-tint);
  background-image:linear-gradient(135deg, color-mix(in srgb, var(--gold) 40%, white), color-mix(in srgb, var(--gold) 12%, white));
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.6rem;
  color:color-mix(in srgb, var(--gold-deep) 75%, black);
}
.camera-icon{width:26px; height:26px; opacity:0.55;}
.placeholder-label{font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase; opacity:0.65;}
.card-index{
  position:absolute; top:0.85rem; right:1rem;
  font-family:var(--ff-display); font-style:italic; font-size:0.85rem; opacity:0.55;
}

.card-body{padding:1.2rem 1.25rem 1.5rem;}
.card-title{font-size:1.02rem; font-weight:500; margin-bottom:0.35rem;}
.card-price{font-weight:600; color:var(--gold-deep); margin-bottom:1rem; font-size:0.92rem;}

/* ============ CALLOUT (note mensurations) ============ */
.callout{
  display:flex; gap:1rem; align-items:flex-start;
  background:var(--gold-tint); border:1px solid rgba(205,164,52,0.35); border-radius:14px;
  padding:1.25rem 1.5rem; margin:2.5rem 0;
}
.callout svg{flex-shrink:0; width:22px; height:22px; color:var(--gold-deep); margin-top:0.15rem;}
.callout p{font-size:0.92rem; color:rgba(23,20,18,0.8);}
.callout strong{color:var(--ink);}

/* ============ SUR-MESURE / FORMS ============ */
.sur-mesure{
  margin-top:3.5rem; background:var(--white); border:1px solid rgba(23,20,18,0.08); border-radius:24px;
  padding:3rem; display:grid; grid-template-columns:1fr 1.4fr; gap:3rem;
}
.sur-mesure-intro h3{font-size:clamp(1.6rem,3vw,2.1rem); margin-bottom:1rem;}
.sur-mesure-intro p{color:rgba(23,20,18,0.65); max-width:32ch; font-weight:300;}
.form-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; align-content:start;}
.form-field{display:flex; flex-direction:column; gap:0.4rem;}
.form-field.full{grid-column:1/-1;}
.form-field label{font-size:0.74rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold-deep);}
.form-field input, .form-field textarea{
  font-family:var(--ff-body); font-size:0.95rem; padding:0.75rem 0.95rem;
  border-radius:10px; border:1px solid rgba(23,20,18,0.16); background:var(--paper);
  transition: border-color .25s ease, box-shadow .25s ease; color:var(--ink);
}
.form-field input:focus, .form-field textarea:focus{
  outline:none; border-color:var(--gold-deep);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.form-field textarea{resize:vertical; min-height:90px;}
.form-actions{grid-column:1/-1; margin-top:0.4rem;}
.form-hint{grid-column:1/-1; font-size:0.8rem; color:rgba(23,20,18,0.5); margin-top:-0.4rem;}

/* ============ CART DRAWER ============ */
.cart-overlay{
  position:fixed; inset:0; background:rgba(23,20,18,0.45);
  opacity:0; pointer-events:none; transition:opacity .4s ease; z-index:300;
}
.cart-overlay.open{opacity:1; pointer-events:auto;}
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:min(440px, 100%);
  background:var(--white); z-index:301; display:flex; flex-direction:column;
  transform:translateX(100%); transition: transform .45s var(--ease);
  box-shadow:-16px 0 48px rgba(0,0,0,0.18);
}
.cart-drawer.open{transform:translateX(0);}
.cart-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:1.5rem; border-bottom:1px solid rgba(23,20,18,0.08);
}
.cart-header h2{font-size:1.4rem; font-style:italic;}
.cart-close{
  font-size:1.6rem; line-height:1; width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; transition:background .25s ease;
}
.cart-close:hover{background:rgba(23,20,18,0.06);}
.cart-body{flex:1; overflow-y:auto; padding:0.5rem 1.5rem;}
.cart-empty{color:rgba(23,20,18,0.5); text-align:center; padding:3.5rem 0; font-size:0.95rem;}
.cart-item{display:flex; gap:1rem; padding:1.1rem 0; border-bottom:1px solid rgba(23,20,18,0.06);}
.cart-item-info{flex:1; min-width:0;}
.cart-item-name{font-weight:500; margin-bottom:0.2rem; font-size:0.95rem;}
.cart-item-price{font-size:0.82rem; color:rgba(23,20,18,0.55);}
.cart-item-side{display:flex; flex-direction:column; align-items:flex-end; gap:0.6rem;}
.cart-item-qty{display:flex; align-items:center; gap:0.5rem;}
.qty-btn{
  width:26px; height:26px; border-radius:50%; border:1px solid rgba(23,20,18,0.22);
  display:flex; align-items:center; justify-content:center; font-size:0.95rem;
  transition: background .2s ease;
}
.qty-btn:hover{background:rgba(23,20,18,0.06);}
.cart-item-remove{font-size:0.74rem; color:rgba(23,20,18,0.5); text-decoration:underline; letter-spacing:0.04em; transition:color .2s ease;}
.cart-item-remove:hover{color:var(--gold-deep);}
.cart-footer{padding:1.5rem; border-top:1px solid rgba(23,20,18,0.08);}
.cart-total{display:flex; justify-content:space-between; font-weight:600; margin-bottom:1.1rem; font-size:1.1rem;}
.cart-note{font-size:0.78rem; color:rgba(23,20,18,0.5); margin-top:0.8rem; text-align:center;}

/* ---- Checkout step within drawer ---- */
.cart-view{display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden;}
.cart-view.hidden{display:none;}
.checkout-view{display:none; flex-direction:column; flex:1; min-height:0; overflow:hidden;}
.checkout-view.active{display:flex;}
.checkout-view form{display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden;}
.checkout-form{flex:1; overflow-y:auto; padding:1.25rem 1.5rem; display:flex; flex-direction:column; gap:1rem;}
.checkout-form .form-field label{font-size:0.7rem;}
.checkout-form .form-field input, .checkout-form .form-field textarea{background:var(--paper);}
.checkout-back{
  display:inline-flex; align-items:center; gap:0.4rem; font-size:0.78rem; letter-spacing:0.06em;
  text-transform:uppercase; color:rgba(23,20,18,0.6); margin-bottom:0.25rem; align-self:flex-start;
}
.checkout-back:hover{color:var(--gold-deep);}
.checkout-footer{padding:1.25rem 1.5rem; border-top:1px solid rgba(23,20,18,0.08);}
.checkout-summary{display:flex; justify-content:space-between; font-weight:600; margin-bottom:1rem; font-size:1.05rem;}

/* ============ FOOTER ("touches de noir") ============ */
.site-footer{ --accent:var(--gold); background:var(--ink); color:var(--paper); padding:0 1.5rem 2rem;}
.footer-inner{
  max-width:var(--max); margin:0 auto; padding:4.5rem 0 0;
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:3rem;
}
.footer-brand{display:flex; align-items:center; gap:0.7rem;}
.footer-brand img{height:42px; width:auto;}
.footer-brand .logo-text{font-size:1.5rem; color:var(--paper);}
.footer-brand .logo-text em{color:var(--gold);}
.footer-about p{margin-top:1rem; color:rgba(248,246,241,0.6); max-width:30ch; font-weight:300;}
.site-footer h3{font-size:0.78rem; text-transform:uppercase; letter-spacing:0.16em; color:var(--gold); margin-bottom:1rem;}
.site-footer a, .site-footer p{display:block; margin-bottom:0.55rem; color:rgba(248,246,241,0.78); transition:color .25s ease;}
.site-footer a:hover{color:var(--gold);}
.footer-copy{
  text-align:center; margin-top:4rem; padding-top:2rem;
  border-top:1px solid rgba(248,246,241,0.12); font-size:0.8rem; color:rgba(248,246,241,0.45);
}

/* ============ SEARCH ============ */
.search-wrap{position:relative; display:flex; align-items:center;}
.search-toggle-btn{
  background:none; border:none; cursor:pointer; padding:0.4rem;
  color:var(--ink); display:flex; align-items:center; transition:color .2s; flex-shrink:0;
}
.search-toggle-btn:hover{color:var(--gold-deep);}
.search-input{
  width:0; padding:0; opacity:0; border:none; outline:none;
  background:transparent; font-family:var(--ff-body); font-size:0.9rem; color:var(--ink);
  transition:width .3s var(--ease), opacity .3s var(--ease), padding .3s var(--ease);
}
.search-wrap.open .search-input{
  width:200px; padding:0.45rem 0.9rem; opacity:1;
  background:var(--white); border:1px solid rgba(23,20,18,.15); border-radius:999px;
}
.search-dropdown{
  position:absolute; top:calc(100% + 10px); right:0;
  background:var(--white); border:1px solid rgba(23,20,18,.1);
  border-radius:var(--radius); box-shadow:0 14px 36px rgba(23,20,18,.13);
  min-width:300px; max-height:380px; overflow-y:auto; z-index:9999; display:none;
}
.search-wrap.open .search-dropdown{display:block;}
.search-result-item{
  display:flex; justify-content:space-between; align-items:center;
  padding:0.75rem 1rem; border-bottom:1px solid rgba(23,20,18,.06);
  text-decoration:none; color:var(--ink); transition:background .15s; gap:1rem;
}
.search-result-item:last-child{border-bottom:none;}
.search-result-item:hover{background:var(--gold-tint);}
.search-result-name{font-size:0.88rem; font-weight:500; line-height:1.3;}
.search-result-cat{font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; opacity:0.5; margin-top:0.15rem;}
.search-result-price{font-size:0.85rem; font-weight:600; color:var(--gold-deep); white-space:nowrap;}
.search-no-result{padding:1.4rem 1rem; font-size:0.88rem; opacity:0.55; text-align:center;}

/* ============ MEDIA QUERIES ============ */
@media (max-width:1080px){
  .grid, .grid--sub{grid-template-columns:repeat(3,1fr);}
  .sur-mesure{grid-template-columns:1fr; padding:2.5rem;}
  .footer-inner{grid-template-columns:1fr 1fr;}
  .footer-about{grid-column:1/-1;}
  .brush--hero{width:320px; height:170px;}
}
@media (max-width:860px){
  .header-left{gap:1.25rem;}
  .search-wrap.open .search-input{width:140px;}
  .search-dropdown{min-width:260px;}
  .main-nav{
    position:fixed; inset:0; top:0; height:100vh; height:100dvh;
    background:var(--white); color:var(--ink);
    display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
    gap:0.25rem; font-size:1.1rem; padding:6rem 1.5rem 2rem;
    transform:translateY(-100%); transition: transform .45s var(--ease);
    z-index:250; overflow-y:auto;
  }
  .main-nav.open{transform:translateY(0);}
  .main-nav .nav-link{justify-content:space-between; padding:1rem 0.5rem; border-bottom:1px solid rgba(23,20,18,0.06); border-radius:0;}
  .main-nav .nav-link:hover{background:none;}
  .dropdown{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none;
    max-height:0; overflow:hidden; padding:0 0.5rem; transition:max-height .35s ease;
  }
  .nav-item.open .dropdown{max-height:300px; padding:0.25rem 0.5rem 0.75rem;}
  .nav-toggle{display:flex;}
  .grid, .grid--sub{grid-template-columns:repeat(2,1fr);}
  .hero-title{font-size:clamp(2.6rem, 15vw, 4.6rem);}
}
@media (max-width:600px){
  .section-inner{padding:3.75rem 1.25rem;}
  .search-wrap.open .search-input{width:100px;}
  .search-dropdown{min-width:220px; right:-40px;}
  .hero{padding:4.5rem 1.25rem 3.5rem;}
  .page-banner{padding:3.5rem 1.25rem 2.5rem;}
  .grid, .grid--sub{grid-template-columns:repeat(2,1fr); gap:1rem;}
  .form-grid{grid-template-columns:1fr;}
  .sur-mesure{padding:1.75rem; border-radius:18px;}
  .footer-inner{grid-template-columns:1fr; text-align:center; gap:2.5rem;}
  .footer-brand{justify-content:center;}
  .hero-actions{flex-direction:column; align-items:stretch;}
  .cart-drawer{width:100%;}
  .brush--hero, .brush--banner{display:none;}
}
@media (max-width:400px){
  .grid, .grid--sub{grid-template-columns:1fr;}
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}
:focus-visible{outline:2px solid var(--gold-deep); outline-offset:2px;}
