@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root{
  --background: 40 33% 98%;
  --foreground: 0 0% 16%;
  --card: 40 33% 98%;
  --card-foreground: 0 0% 16%;
  --muted: 35 20% 93%;
  --muted-foreground: 210 10% 40%;
  --border: 210 14% 82%;
  --primary: 270 35% 49%;
  --primary-foreground: 0 0% 98%;
  --secondary: 35 45% 80%;
  --secondary-foreground: 0 0% 16%;
  --accent: 210 14% 49%;
  --accent-foreground: 0 0% 98%;
  --radius: .5rem;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

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

html{scroll-behavior:smooth}

body{
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

h1,h2,h3,h4{
  font-family: var(--font-heading);
  font-weight:500;
  line-height:1.15;
  letter-spacing:.01em;
}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:hsl(var(--primary));
  font-weight:600;
  margin-bottom:14px;
  display:block;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 30px;
  border-radius:999px;
  font-size:.95rem;
  font-weight:500;
  cursor:pointer;
  border:1px solid transparent;
  transition:.2s ease;
}
.btn-primary{
  background:hsl(var(--primary));
  color:hsl(var(--primary-foreground));
}
.btn-primary:hover{background:hsl(270 35% 42%)}
.btn-outline{
  background:transparent;
  border-color:hsl(var(--border));
  color:hsl(var(--foreground));
}
.btn-outline:hover{border-color:hsl(var(--primary));color:hsl(var(--primary))}
.btn-block{width:100%}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:hsl(var(--background)/.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid hsl(var(--border));
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  height:84px;
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:44px;width:44px;object-fit:cover;border-radius:50%}
.brand span{font-family:var(--font-heading);font-size:1.4rem;font-weight:600;letter-spacing:.02em}

.main-nav{display:flex;gap:36px}
.main-nav a{
  font-size:.9rem;font-weight:500;color:hsl(var(--muted-foreground));
  transition:color .2s;
  position:relative;
}
.main-nav a:hover, .main-nav a.active{color:hsl(var(--primary))}

.nav-toggle{display:none;background:none;border:none;font-size:1.6rem;cursor:pointer;color:hsl(var(--foreground))}

/* Hero */
.hero{
  position:relative;
  min-height:640px;
  display:flex;align-items:center;
  color:#fff;
  overflow:hidden;
}
.hero img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;z-index:0;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg, rgba(20,15,25,.72), rgba(20,15,25,.35));
  z-index:1;
}
.hero .container{position:relative;z-index:2;max-width:680px}
.hero .eyebrow{color:hsl(var(--secondary))}
.hero h1{font-size:clamp(2.4rem,5vw,3.5rem);margin-bottom:20px;color:#fff}
.hero p{font-size:1.05rem;color:rgba(255,255,255,.88);margin-bottom:32px;max-width:520px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
.hero .btn-outline{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.5);color:#fff}
.hero .btn-outline:hover{background:rgba(255,255,255,.18);border-color:#fff}

/* Sections */
section{padding:96px 0}
.section-head{max-width:640px;margin-bottom:56px}
.section-head h2{font-size:clamp(1.8rem,3.4vw,2.6rem);margin-bottom:16px}
.section-head p{color:hsl(var(--muted-foreground));font-size:1.05rem}
.section-alt{background:hsl(var(--muted))}

/* Atelier split */
.split{
  display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;
}
.split img{border-radius:var(--radius);width:100%;height:480px;object-fit:cover}
.split h2{font-size:clamp(1.8rem,3.2vw,2.5rem);margin-bottom:20px}
.split p{color:hsl(var(--muted-foreground));margin-bottom:28px}
.split .ai-figure{margin:0}
.split .ai-figure figcaption{font-size:.72rem;color:hsl(var(--muted-foreground));margin-top:6px;text-align:right;font-style:italic}

/* Product grid */
.grid-products{
  display:grid;grid-template-columns:repeat(3,1fr);gap:32px;
}
.product-card{
  background:hsl(var(--card));
  border:1px solid hsl(var(--border));
  border-radius:var(--radius);
  overflow:hidden;
  transition:.25s ease;
  display:flex;flex-direction:column;
}
.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px -18px rgba(0,0,0,.25)}
.product-card .thumb{aspect-ratio:4/5;overflow:hidden;background:hsl(var(--muted))}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.product-card:hover .thumb img{transform:scale(1.05)}
.product-card .info{padding:20px 22px 24px}
.product-card h3{font-size:1.25rem;margin-bottom:6px}
.product-card .price{color:hsl(var(--primary));font-weight:600;font-size:.95rem}
.product-card .desc{color:hsl(var(--muted-foreground));font-size:.9rem;margin-top:10px}

.badge{
  display:inline-block;
  background:hsl(var(--secondary)/.4);
  color:hsl(var(--primary));
  border-radius:999px;
  font-size:.8rem;
  font-weight:600;
  padding:8px 18px;
  margin-bottom:24px;
}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
.step{text-align:left}
.step .num{
  font-family:var(--font-heading);font-size:2.6rem;color:hsl(var(--secondary));
  font-weight:600;margin-bottom:12px;
}
.step h3{font-size:1.3rem;margin-bottom:10px}
.step p{color:hsl(var(--muted-foreground))}

/* Gallery grid */
.grid-gallery{
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
}
.grid-gallery .g-item{border-radius:var(--radius);overflow:hidden;aspect-ratio:3/4;background:hsl(var(--muted))}
.grid-gallery .g-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.grid-gallery .g-item:hover img{transform:scale(1.06)}

.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:40px}
.filter-btn{
  padding:9px 20px;border-radius:999px;font-size:.85rem;font-weight:500;
  border:1px solid hsl(var(--border));background:transparent;cursor:pointer;
  transition:.2s;
}
.filter-btn.active,.filter-btn:hover{background:hsl(var(--primary));color:#fff;border-color:hsl(var(--primary))}

/* Lightbox */
.grid-gallery .g-item{cursor:zoom-in}
.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(18,14,22,.94);
  display:none;align-items:center;justify-content:center;
  padding:72px 24px 40px;
}
.lightbox.open{display:flex}
.lightbox img{
  max-width:100%;max-height:100%;
  object-fit:contain;
  border-radius:var(--radius);
  box-shadow:0 24px 60px -20px rgba(0,0,0,.6);
}
.lightbox-close{
  position:absolute;top:20px;right:24px;
  width:52px;height:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.55);
  color:#fff;font-size:2rem;line-height:1;font-family:var(--font-body);
  cursor:pointer;transition:.2s ease;
}
.lightbox-close:hover{background:rgba(255,255,255,.3);transform:rotate(90deg)}
.lightbox-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:600px){
  .lightbox{padding:64px 12px 24px}
  .lightbox-close{top:12px;right:12px;width:44px;height:44px;font-size:1.7rem}
}

/* Footer */
.site-footer{
  background:hsl(0 0% 12%);
  color:hsl(0 0% 85%);
  padding:72px 0 32px;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:48px;
  margin-bottom:56px;
}
.footer-grid .brand span{color:#fff}
.footer-grid p{color:hsl(0 0% 60%);margin-top:16px;font-size:.9rem;max-width:260px}
.footer-grid h4{font-family:var(--font-heading);font-size:1.05rem;color:#fff;margin-bottom:18px;font-weight:600}
.footer-grid li{margin-bottom:10px}
.footer-grid a{color:hsl(0 0% 65%);font-size:.9rem;transition:color .2s}
.footer-grid a:hover{color:hsl(var(--secondary))}
.footer-bottom{
  border-top:1px solid hsl(0 0% 22%);
  padding-top:28px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:.82rem;color:hsl(0 0% 50%);
}

/* Page header (interior pages) */
.page-hero{padding:72px 0 16px}
.page-hero h1{font-size:clamp(2rem,4vw,2.8rem);margin-bottom:16px}
.page-hero p{color:hsl(var(--muted-foreground));max-width:600px;font-size:1.05rem}
.page-hero .color-note{font-size:.85rem;font-style:italic;margin-top:8px}

/* About */
.about-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:64px}
.about-card{
  background:hsl(var(--card));border:1px solid hsl(var(--border));
  border-radius:var(--radius);padding:32px;
}
.about-card h3{font-size:1.2rem;margin-bottom:10px}
.about-card p{color:hsl(var(--muted-foreground));font-size:.95rem}
.about-lead{max-width:760px}
.about-lead p{margin-bottom:20px;color:hsl(var(--muted-foreground));font-size:1.05rem}
.about-lead a{
  color:hsl(var(--primary));font-weight:500;
  border-bottom:1px solid hsl(var(--primary)/.35);
  transition:border-color .2s;
}
.about-lead a:hover{border-bottom-color:hsl(var(--primary))}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:56px;align-items:start}
.field{margin-bottom:22px}
.field label{display:block;font-size:.85rem;font-weight:600;margin-bottom:8px}
.field input,.field select,.field textarea{
  width:100%;padding:13px 16px;border:1px solid hsl(var(--border));
  border-radius:var(--radius);font-family:var(--font-body);font-size:.95rem;
  background:hsl(var(--background));color:hsl(var(--foreground));
}
.field textarea{min-height:140px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid hsl(var(--primary)/.4);border-color:hsl(var(--primary))}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.contact-info{
  background:hsl(var(--muted));border-radius:var(--radius);padding:32px;
}
.contact-info h4{font-family:var(--font-heading);font-size:1.15rem;margin-bottom:6px;margin-top:24px}
.contact-info h4:first-child{margin-top:0}
.contact-info p{color:hsl(var(--muted-foreground));font-size:.92rem}
.contact-info a{color:hsl(var(--primary));font-weight:500}

/* Product detail */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:64px}
.product-detail .thumb{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/5}
.product-detail .thumb img{width:100%;height:100%;object-fit:cover}

.variant-thumbs{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.variant-thumb{
  width:64px;height:64px;border-radius:8px;overflow:hidden;padding:0;
  border:2px solid transparent;cursor:pointer;background:none;opacity:.65;
  transition:.2s;
}
.variant-thumb img{width:100%;height:100%;object-fit:cover}
.variant-thumb:hover{opacity:1}
.variant-thumb.active{border-color:hsl(var(--primary));opacity:1}
.product-detail h1{font-size:clamp(2rem,3.6vw,2.6rem);margin-bottom:18px}
.product-detail .desc{color:hsl(var(--muted-foreground));margin-bottom:32px;font-size:1.02rem}
.price-box{margin-bottom:28px}
.price-box .label{font-size:.85rem;color:hsl(var(--muted-foreground));margin-bottom:4px}
.price-box .price{font-family:var(--font-heading);font-size:2.2rem;font-weight:600;color:hsl(var(--primary))}
.price-box .vat{font-size:.8rem;color:hsl(var(--muted-foreground));margin-top:4px}
.specs{border-top:1px solid hsl(var(--border));border-bottom:1px solid hsl(var(--border));padding:24px 0;margin-bottom:32px}
.specs h4{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:hsl(var(--muted-foreground));margin-bottom:14px}
.specs .row{display:flex;justify-content:space-between;gap:24px;padding:8px 0;font-size:.95rem}
.specs .row[hidden]{display:none}
.specs .row span:first-child{flex:none;color:hsl(var(--muted-foreground))}
.specs .row span:last-child{text-align:right}
.order-actions{display:flex;flex-direction:column;gap:10px}
.order-note{background:hsl(var(--muted));border-radius:var(--radius);padding:18px 20px;font-size:.85rem;color:hsl(var(--muted-foreground));margin-top:18px}
.order-note p{margin-bottom:12px}
.order-note p:last-of-type{margin-bottom:0}
.order-message-box{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:var(--radius);padding:14px 16px;margin:12px 0}
.order-message-box pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:.85rem;color:hsl(var(--foreground));margin-bottom:12px}
.order-message-box .btn{width:auto}
.copy-feedback{color:hsl(var(--primary));font-weight:600;font-size:.85rem}
.back-link{display:inline-flex;align-items:center;gap:6px;color:hsl(var(--muted-foreground));font-size:.9rem;margin-bottom:32px}
.back-link:hover{color:hsl(var(--primary))}

/* Legal pages */
.legal-content{max-width:760px}
.legal-content h2{margin-top:36px;margin-bottom:14px;font-size:1.4rem}
.legal-content p, .legal-content li{color:hsl(var(--muted-foreground));margin-bottom:12px}
.legal-content li{margin-left:20px;list-style:disc}

@media(max-width:900px){
  .split,.contact-grid,.product-detail{grid-template-columns:1fr}
  .split img{height:320px}
  .grid-products{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr}
  .grid-gallery{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .about-cards{grid-template-columns:1fr}
  /* Menu déroulant : panneau opaque sous l'en-tête.
     L'en-tête porte un backdrop-filter, il sert donc de bloc conteneur
     au positionnement absolu du panneau. */
  .main-nav{
    display:none;
    position:absolute;top:100%;left:0;right:0;z-index:60;
    background:hsl(var(--background));
    border-bottom:1px solid hsl(var(--border));
    box-shadow:0 18px 34px -18px rgba(0,0,0,.4);
    flex-direction:column;gap:0;padding:8px 24px 20px;
    max-height:calc(100vh - 84px);overflow-y:auto;
  }
  .main-nav.open{display:flex}
  .main-nav a{padding:15px 4px;border-bottom:1px solid hsl(var(--border));font-size:1.05rem}
  .main-nav a:last-child{border-bottom:none}
  .nav-toggle{display:block}
}
@media(max-width:600px){
  .grid-products{grid-template-columns:1fr}
  .grid-gallery{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
}
