:root {
  --bg:    #F6EEE9;
  --paper: #FBF7F4;
  --rose:  #B67A83;
  --mauve: #C8A8C4;
  --ink:   #5A3E44;
  --line:  #C9A7AD;
  --muted: #8C6D72;
  --shadow: 0 10px 25px rgba(90,62,68,.08);
}

/* Base */
* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1,h2,h3 {
  font-family: Marcellus, serif;
  line-height: 1.2;
  margin: 0 0 .6rem;
}
h1.title { font-size: clamp(2rem, 3.2vw + 1rem, 3.2rem); color: var(--rose); }
h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); }
.container { width: min(1100px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .9rem 1.1rem;
  background: var(--rose);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--rose); border-color: var(--rose); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 1px solid #ead9dc;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: none;
  background: none;
}
.brand-text strong { display: block; font-family: Marcellus, serif; font-size: 1.05rem; }
.brand-text em { display: block; font-style: normal; font-size: .85rem; color: var(--muted); }

.main-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.main-nav a {
  padding: .5rem .8rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.main-nav a:hover { border-color: var(--line); background: var(--paper); }

.lang-switch { display: flex; gap: .35rem; }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  padding: .45rem .7rem;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--rose); color: white; border-color: transparent; }

/* Hero */
.hero { padding: 4.5rem 0 3.2rem; text-align: center; }
.subtitle { margin: .35rem 0 1rem; color: var(--muted); }
.lede { font-size: clamp(1rem, .45vw + .9rem, 1.15rem); margin: 0 auto 1.4rem; max-width: 60ch; }
.hero-cta { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.about-card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: .6rem; }

/* Cards grid (12-col to allow size control) */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.card { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card--sm { grid-column: span 3; min-width: 220px; }
.card--md { grid-column: span 4; min-width: 260px; }
.card--lg { grid-column: span 6; min-width: 320px; }

@media (max-width: 1000px) {
  .card--sm, .card--md { grid-column: span 6; }
  .card--lg { grid-column: span 12; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card--sm, .card--md, .card--lg { grid-column: span 12; }
}

/* Card content */
.card-media { padding: .6rem; }
.card-main-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.thumbs {
  display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap;
}
.thumb {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  cursor: pointer;
}
.thumb.is-active { outline: 2px solid var(--rose); outline-offset: 0; }

.card-body { padding: 1rem; }
.card-title { font-size: 1.12rem; margin-bottom: .35rem; }
.card-desc { color: var(--muted); margin-bottom: .7rem; }

/* Meta (price/dimensions) */
.meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem;
}
.meta dt { font-weight: 600; color: var(--ink); }
.meta dd { margin: 0; color: var(--ink); }

/* Contact */
.narrow { width: min(720px, 92%); }
.contact-form { display: grid; gap: .9rem; margin-top: .6rem; }
.form-row { display: grid; gap: .35rem; }
input, textarea {
  width: 100%;
  padding: .85rem .95rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  color: inherit;
}
.social { margin-top: 1rem; display: flex; gap: .6rem; align-items: center; }
.ig { color: var(--rose); text-decoration: none; border-bottom: 1px solid currentColor; }
.ig:hover { opacity: .85; }

/* Footer */
.site-footer { border-top: 1px solid #ead9dc; padding: 1rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.to-top { text-decoration: none; color: var(--rose); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lb-img { max-width: 90vw; max-height: 85vh; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.9); border: 1px solid #ddd;
  width: 44px; height: 44px; font-size: 24px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}

/* Bouton miniature */
.thumb {
  border: none;
  background: transparent;
  padding: 0;
  width: 70px;
  height: 70px;
  overflow: hidden; /* masque ce qui dépasse */
  cursor: pointer;
  position: relative;
}

/* Image dans la miniature */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop carré */
  object-position: center; /* centre le cadrage */
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}

/* Survol */
.thumb:hover img {
  transform: scale(1.05);
  border-color: var(--rose);
}

/* Sélectionnée */
.thumb.is-active img {
  border: 2px solid var(--rose);
  transform: scale(1.08);
}
