/* ═══════════════════════════════════════════════════════════════
   Dame en Soi — Pièces signature
   Widget « Nos créations » · grille collection · fiche création
   + Landing Salon du Made in France
   ═══════════════════════════════════════════════════════════════ */

:root { --emeraude: #064E3B; --emeraude-clair: #0E8A5F; }

/* ─── WIDGET (rail horizontal) ─── */
.pieces-widget { padding: 4rem 0 3.5rem; overflow: hidden; }
.pieces-widget--creme { background: var(--creme); }
.pieces-widget--sable { background: var(--sable); }
.pieces-widget--blanc { background: var(--blanc); }
.pieces-widget--emeraude { background: var(--emeraude); }
.pieces-widget--emeraude .section-title { color: var(--creme); }
.pieces-widget--emeraude .section-label { color: var(--gold-light); }
.pieces-widget--emeraude .section-intro { color: rgba(253,248,240,0.7); }

.pieces-widget-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.pieces-rail-nav { display: none; gap: 0.5rem; flex-shrink: 0; }
.pieces-rail-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-dark);
  font-size: 1.1rem; cursor: pointer; transition: background var(--transition), color var(--transition);
}
.pieces-rail-btn:hover { background: var(--gold); color: var(--noir); }
.pieces-widget--emeraude .pieces-rail-btn { color: var(--gold-light); }

.pieces-rail {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0.25rem max(1.25rem, calc((100vw - 1100px) / 2 + 1.25rem)) 1rem;
  scroll-padding-left: max(1.25rem, calc((100vw - 1100px) / 2 + 1.25rem));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pieces-rail::-webkit-scrollbar { display: none; }
.pieces-rail:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ─── CARTE PIÈCE ─── */
.piece-card {
  display: block; text-decoration: none; color: var(--noir);
  background: var(--blanc); border-radius: var(--radius); overflow: hidden;
}
.piece-card-img { display: block; overflow: hidden; background: var(--sable); }
.piece-card-img img { display: block; width: 100%; height: auto; transition: transform 0.6s ease; }
.piece-card:hover .piece-card-img img { transform: scale(1.04); }
.piece-card-body { display: block; padding: 1rem 1.1rem 1.2rem; }
.piece-card-kind {
  display: block; font-family: 'Jost', sans-serif; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark);
}
.piece-card-name {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 400; line-height: 1.15; margin: 0.25rem 0 0.3rem;
}
.piece-card-tagline {
  display: block; font-size: 0.82rem; font-weight: 300; line-height: 1.5; color: #6B6257;
}
.piece-card-link {
  display: inline-block; margin-top: 0.7rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emeraude); border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* Carte dans le rail : hauteur d'image fixe, largeur = proportion naturelle de la photo */
.piece-card--rail {
  flex: 0 0 auto; scroll-snap-align: start;
  display: grid; grid-template-rows: auto 1fr; width: fit-content; max-width: 84vw;
}
.piece-card--rail .piece-card-img { height: 300px; }
.piece-card--rail .piece-card-img img { height: 100%; width: auto; max-width: 84vw; object-fit: cover; }
.piece-card--rail .piece-card-body { width: 0; min-width: 100%; }

.piece-card--more {
  background: var(--emeraude); color: var(--creme);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 240px; min-height: 300px; padding: 2rem 1.5rem; text-align: center;
  border: 1px solid rgba(212,168,67,0.4);
}
.piece-more-script { font-family: 'Great Vibes', cursive; font-size: 2.4rem; color: var(--gold-light); line-height: 1.1; }
.piece-more-text { margin-top: 0.8rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ─── GRILLE COLLECTION (page Créations) — mosaïque aux proportions naturelles ─── */
.pieces-collection { background: var(--creme); padding: 3.5rem 0 4rem; }
.pieces-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.pieces-filter {
  font-family: 'Jost', sans-serif; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border: 1px solid rgba(184,135,46,0.45); background: transparent;
  color: var(--noir-doux); cursor: pointer; border-radius: 999px; transition: all var(--transition);
}
.pieces-filter.active, .pieces-filter:hover { background: var(--emeraude); border-color: var(--emeraude); color: var(--creme); }
.pieces-grid { columns: 1; column-gap: 1.2rem; }
.pieces-grid .piece-card { break-inside: avoid; margin-bottom: 1.2rem; }
.pieces-grid .piece-card[hidden] { display: none; }

/* ─── FICHE CRÉATION ─── */
.piece { background: var(--creme); padding: 1.5rem 0 4rem; }
.piece-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.piece-main { margin: 0; background: var(--sable); border-radius: var(--radius); overflow: hidden; }
.piece-main img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--sable); }
.piece-thumbs { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.piece-thumb {
  width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: var(--sable);
  cursor: pointer; overflow: hidden; border-radius: var(--radius); opacity: 0.75; transition: all var(--transition);
}
.piece-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-thumb.active, .piece-thumb:hover { border-color: var(--gold); opacity: 1; }

.piece-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.05; color: var(--noir); margin: 0.2rem 0 0.6rem;
}
.piece-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.35rem; line-height: 1.35; color: var(--emeraude); margin-bottom: 1.4rem;
  padding-left: 1rem; border-left: 2px solid var(--gold);
}
.piece-story { font-size: 0.98rem; font-weight: 300; line-height: 1.8; color: var(--noir-doux); margin-bottom: 1rem; max-width: 34rem; }
.piece-details { list-style: none; margin: 1.5rem 0; padding: 1.1rem 0; border-top: 1px solid rgba(184,135,46,0.3); border-bottom: 1px solid rgba(184,135,46,0.3); display: grid; gap: 0.45rem; }
.piece-details li { font-size: 0.85rem; color: var(--noir-doux); padding-left: 1.3rem; position: relative; }
.piece-details li::before { content: '✦'; position: absolute; left: 0; color: var(--gold-dark); font-size: 0.7rem; top: 0.15em; }
.piece-cta { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; margin-bottom: 2rem; }
.piece-price-note { font-size: 0.78rem; color: #6B6257; font-weight: 300; }

.piece-share { background: var(--blanc); padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--radius); }
.piece-share-title { font-family: 'Jost', sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.9rem; }
.piece-share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: inline-flex; align-items: center; min-height: 40px;
  font-family: 'Jost', sans-serif; font-size: 0.78rem; text-decoration: none;
  padding: 0.5rem 0.95rem; border: 1px solid rgba(6,78,59,0.3); border-radius: 999px;
  background: transparent; color: var(--emeraude); cursor: pointer; transition: all var(--transition);
}
.share-btn:hover, .share-btn.done { background: var(--emeraude); color: var(--creme); border-color: var(--emeraude); }
.share-btn--native { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.share-btn[hidden] { display: none; }
.piece-insta { margin-top: 1rem; border-top: 1px solid var(--sable); padding-top: 0.9rem; }
.piece-insta summary { cursor: pointer; font-size: 0.85rem; color: var(--noir-doux); font-weight: 500; }
.piece-insta-body { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.piece-insta-img { display: block; text-decoration: none; color: var(--emeraude); font-size: 0.75rem; text-align: center; max-width: 220px; }
.piece-insta-img img { display: block; width: 100%; height: auto; margin-bottom: 0.4rem; border: 1px solid var(--sable); }
.piece-insta-caption pre {
  white-space: pre-wrap; word-break: break-word; font-family: 'Jost', sans-serif; font-size: 0.82rem; line-height: 1.6;
  color: var(--noir-doux); background: var(--creme); padding: 0.9rem 1rem; margin-bottom: 0.7rem; border-radius: var(--radius);
}

/* ─── BANDEAU SALON (accueil) ─── */
.salon-band { background: var(--emeraude); color: var(--creme); padding: 0; border-top: 1px solid rgba(212,168,67,0.35); border-bottom: 1px solid rgba(212,168,67,0.35); }
.salon-band a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 1.2rem; padding: 0.95rem 1.25rem; color: inherit; text-decoration: none; text-align: center; }
.salon-band-script { font-family: 'Great Vibes', cursive; font-size: 1.5rem; color: var(--gold-light); line-height: 1; }
.salon-band-text { font-size: 0.82rem; letter-spacing: 0.06em; }
.salon-band-cta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ─── LANDING SALON ─── */
.salon-hero { position: relative; background: var(--emeraude); color: var(--creme); padding: 6.5rem 0 3.5rem; overflow: hidden; }
.salon-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(212,168,67,0.16), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(255,255,255,0.06), transparent 55%); pointer-events: none; }
.salon-hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.salon-kicker { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.8rem; }
.salon-script { font-family: 'Great Vibes', cursive; font-size: clamp(2.6rem, 8vw, 4rem); color: var(--gold-light); line-height: 1; display: block; }
.salon-h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.1rem, 6.5vw, 3.6rem); line-height: 1.08; margin: 0.4rem 0 1rem; color: var(--creme); }
.salon-lede { font-size: 1rem; font-weight: 300; line-height: 1.75; color: rgba(253,248,240,0.82); max-width: 32rem; }
.salon-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 1.8rem 0; width: fit-content; max-width: 100%; border: 1px solid rgba(212,168,67,0.45); }
.salon-fact { padding: 0.85rem 1.1rem; border-right: 1px solid rgba(212,168,67,0.45); }
.salon-fact:last-child { border-right: 0; }
.salon-fact dt { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.salon-fact dd { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.25; margin-top: 0.2rem; }
.salon-hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.salon-hero-visual { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.salon-hero-visual img { display: block; width: 100%; height: auto; border: 1px solid rgba(212,168,67,0.5); }
.salon-hero-visual::after { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid rgba(212,168,67,0.4); z-index: -1; }

.salon-section { padding: 4rem 0; }
.salon-section--creme { background: var(--creme); }
.salon-section--blanc { background: var(--blanc); }
.salon-section--sable { background: var(--sable); }
.salon-two { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2rem; }
.salon-card { background: var(--blanc); padding: 1.8rem 1.5rem; border-top: 2px solid var(--gold); }
.salon-section--blanc .salon-card { background: var(--creme); }
.salon-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: 0.6rem; }
.salon-card p { font-size: 0.92rem; font-weight: 300; line-height: 1.7; color: var(--noir-doux); }
.salon-card ul { list-style: none; margin: 1rem 0 1.3rem; display: grid; gap: 0.5rem; }
.salon-card li { font-size: 0.88rem; line-height: 1.55; padding-left: 1.3rem; position: relative; color: var(--noir-doux); }
.salon-card li::before { content: '✦'; position: absolute; left: 0; top: 0.1em; color: var(--gold-dark); font-size: 0.7rem; }
.salon-card .btn { margin-top: 0.3rem; }
.btn-emeraude { background: var(--emeraude) !important; color: var(--creme) !important; border: 1.5px solid var(--emeraude) !important; }
.btn-emeraude:hover { background: var(--emeraude-clair) !important; }

.salon-story { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.salon-story img { display: block; width: 100%; height: auto; }
.salon-story blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.4rem; line-height: 1.4; color: var(--emeraude); border-left: 2px solid var(--gold); padding-left: 1.1rem; margin: 1.4rem 0; }
.salon-story p { font-size: 0.95rem; font-weight: 300; line-height: 1.8; color: var(--noir-doux); margin-bottom: 0.9rem; }

.salon-infos { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 2rem; border-top: 1px solid rgba(184,135,46,0.35); }
.salon-info { padding: 1.2rem 0; border-bottom: 1px solid rgba(184,135,46,0.35); display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.salon-info dt { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); padding-top: 0.3rem; }
.salon-info dd { font-size: 0.95rem; line-height: 1.6; color: var(--noir-doux); }
.salon-info dd strong { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--noir); display: block; line-height: 1.2; }

.salon-form-wrap { max-width: 640px; margin: 2rem auto 0; background: var(--blanc); padding: 1.8rem 1.4rem; border-top: 2px solid var(--gold); }
.salon-profil { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; border: 0; padding: 0; }
.salon-profil legend { font-size: 0.75rem; font-weight: 500; color: var(--noir-doux); margin-bottom: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; }
.salon-profil label { cursor: pointer; }
.salon-profil input { position: absolute; opacity: 0; }
.salon-profil span { display: inline-block; padding: 0.55rem 1rem; border: 1px solid rgba(6,78,59,0.3); border-radius: 999px; font-size: 0.82rem; color: var(--emeraude); transition: all var(--transition); }
.salon-profil input:checked + span { background: var(--emeraude); color: var(--creme); border-color: var(--emeraude); }
.salon-profil input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.salon-faq details { border-bottom: 1px solid rgba(184,135,46,0.3); padding: 1rem 0; }
.salon-faq summary { cursor: pointer; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--noir); }
.salon-faq p { margin-top: 0.6rem; font-size: 0.92rem; font-weight: 300; line-height: 1.7; color: var(--noir-doux); }

@media (min-width: 640px) {
  .pieces-grid { columns: 2; }
  .piece-card--rail .piece-card-img { height: 360px; }
  .salon-two { grid-template-columns: 1fr 1fr; }
  .piece-insta-body { grid-template-columns: 200px 1fr; }
}
@media (min-width: 900px) {
  .pieces-rail-nav { display: flex; }
  .pieces-grid { columns: 3; }
  .piece { padding: 2rem 0 5rem; }
  .piece-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .piece-gallery { position: sticky; top: 90px; }
  .salon-hero { padding: 8rem 0 5rem; }
  .salon-hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .salon-story { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
  .salon-form-wrap { padding: 2.5rem; }
}
@media (max-width: 420px) {
  .salon-facts { grid-template-columns: 1fr; width: 100%; }
  .salon-fact { border-right: 0; border-bottom: 1px solid rgba(212,168,67,0.45); }
  .salon-fact:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .piece-card-img img { transition: none; }
  .pieces-rail { scroll-behavior: auto; }
}

/* ─── PAGE 404 ─── */
.err404 { background: var(--emeraude); color: var(--creme); padding: 7rem 0 4.5rem; text-align: center; position: relative; overflow: hidden; }
.err404::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.18), transparent 60%); pointer-events: none; }
.err404-inner { position: relative; max-width: 640px; }
.err404-code { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(6rem, 24vw, 11rem); line-height: 0.9; color: rgba(253,248,240,0.16); letter-spacing: 0.04em; }
.err404-code span { font-family: 'Great Vibes', cursive; color: var(--gold-light); font-size: 0.9em; padding: 0 0.05em; }
.err404 .section-label { color: var(--gold-light); margin-top: 1rem; }
.err404-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.12; margin: 0.4rem 0 1rem; color: var(--creme); }
.err404-text { font-size: 1rem; font-weight: 300; line-height: 1.75; color: rgba(253,248,240,0.82); }
.err404-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin: 2rem 0 1.6rem; }
.err404-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: center; }
.err404-links a { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(212,168,67,0.5); padding-bottom: 2px; }

/* ─── POPUP SALON (réutilise .popup-* de style.css) ─── */
.popup-card--salon { background: var(--emeraude); }
.popup-script { font-family: 'Great Vibes', cursive; font-size: 2.6rem; line-height: 1; color: var(--gold-light); margin: 0.2rem 0 0.5rem; }

/* ─── BANDEAU COOKIES (discret, bas d'écran) ─── */
.cookie-bar {
  position: fixed; left: 50%; bottom: 0.9rem; transform: translateX(-50%); z-index: 9000;
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100vw - 1.5rem);
  background: var(--creme); color: var(--noir-doux); border: 1px solid rgba(184,135,46,0.55);
  padding: 0.6rem 0.9rem 0.6rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  font-family: 'Jost', sans-serif; font-size: 0.78rem; line-height: 1.4;
}
.cookie-bar a { color: var(--emeraude); }
.cookie-bar-actions { display: flex; gap: 0.4rem; }
.cookie-bar button { font: inherit; cursor: pointer; border-radius: 999px; padding: 0.4rem 0.9rem; border: 1px solid rgba(6,78,59,0.35); background: transparent; color: var(--emeraude); min-height: 34px; }
.cookie-bar button[data-cookie="yes"] { background: var(--emeraude); color: var(--creme); border-color: var(--emeraude); }
@media (max-width: 520px) { .cookie-bar { border-radius: 14px; width: calc(100vw - 1.5rem); text-align: center; } }
