/* =========================================================
   BABETH PUECH ART — Feuille de style principale
   Reconstruction locale du site (remplace Wix)
   ========================================================= */

:root {
  --bg:        #faf8f5;   /* blanc cassé, ambiance galerie */
  --bg-alt:    #f1ece5;
  --ink:       #2a2724;   /* texte principal */
  --ink-soft:  #6b645c;   /* texte secondaire */
  --accent:    #a8642f;   /* terracotta / ocre, rappel peinture */
  --accent-dk: #7d4a20;
  --line:      #e3ddd4;
  --white:     #ffffff;
  --max:       1160px;
  --serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:      "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dk); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .08em;
  color: var(--ink); text-transform: uppercase; white-space: nowrap;
}
.brand span { color: var(--accent); }

.menu {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.menu a {
  color: var(--ink-soft);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s;
}
.menu a:hover, .menu a.active { color: var(--ink); }
.menu a:hover::after, .menu a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--ink); line-height: 1;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 62vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  background:
    linear-gradient(rgba(250,248,245,.55), rgba(250,248,245,.8)),
    repeating-linear-gradient(135deg, var(--bg-alt) 0 22px, var(--bg) 22px 44px);
}
.hero .eyebrow {
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero p.lead { max-width: 620px; color: var(--ink-soft); font-size: 1.15rem; margin: 14px auto 30px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--accent); color: #fff;
  padding: 13px 30px; border: 0; border-radius: 2px;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--accent-dk); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ---------- SECTIONS ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .eyebrow {
  font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); }

/* ---------- GRID / CARDS ---------- */
.grid { display: grid; gap: 30px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.09); transform: translateY(-3px); }
.card .body { padding: 22px 24px 26px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* Placeholder visuel (en attendant les vraies images) */
.ph {
  aspect-ratio: 4 / 3; width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--serif); font-size: 1.4rem; letter-spacing: .05em;
  background: linear-gradient(135deg, #b9754a, #8a4f2c);
}
.ph.v2 { background: linear-gradient(135deg, #7c8a6a, #4f5d3f); }
.ph.v3 { background: linear-gradient(135deg, #6a7f8a, #3f525d); }
.ph.v4 { background: linear-gradient(135deg, #8a6a7f, #5d3f52); }
.ph.tall { aspect-ratio: 3 / 4; }

/* ---------- SPLIT (texte + visuel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .ph { aspect-ratio: 1/1; border-radius: 3px; }

/* ---------- CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info p { margin: 0 0 14px; }
.contact-info .label {
  display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2px;
}
.map-embed { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

form .field { margin-bottom: 20px; }
form label { display: block; font-size: .8rem; letter-spacing: .05em; margin-bottom: 6px; color: var(--ink-soft); }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--accent);
}
form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-success {
  display: none; margin-top: 16px; padding: 14px 16px;
  background: #ecf3ea; border: 1px solid #cfe0c9; border-radius: 2px; color: #40603a;
}

/* ---------- CALLOUT ---------- */
.callout {
  text-align: center; background: var(--accent);
  color: #fff; padding: 70px 24px; border-radius: 4px;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.9); max-width: 560px; margin: 10px auto 26px; }
.callout .btn { background: #fff; color: var(--accent); }
.callout .btn:hover { background: var(--ink); color: #fff; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: #cdc6bd; padding: 60px 0 30px; margin-top: 0; }
.site-footer a { color: #e6ddd0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: .92rem; }
.socials { display: flex; gap: 14px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px; border: 1px solid #4a453f; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
  letter-spacing: .02em;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #3a352f; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .82rem; color: #8f877c;
}
.footer-bottom nav a { color: #8f877c; margin-right: 16px; }
.footer-bottom nav a:hover { color: #fff; }

/* ---------- PAGE INTRO (pages internes) ---------- */
.page-intro { padding: 70px 0 20px; text-align: center; }
.page-intro .eyebrow { color: var(--accent); letter-spacing: .24em; text-transform: uppercase; font-size: .78rem; }

/* Bandeau "page à compléter" */
.wip {
  background: #fff7ec; border: 1px dashed var(--accent);
  color: var(--accent-dk); border-radius: 3px;
  padding: 16px 20px; font-size: .92rem; margin: 30px auto; max-width: 760px; text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px; display: none;
  }
  .menu.open { display: flex; }
  .menu li { width: 100%; }
  .menu a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== GALERIE (masonry + lightbox) ========== */
.gallery { column-count: 4; column-gap: 16px; }
.gallery .item {
  break-inside: avoid; margin: 0 0 16px; position: relative;
  cursor: zoom-in; border-radius: 3px; overflow: hidden;
  background: var(--bg-alt);
}
.gallery .item img { width: 100%; display: block; transition: transform .4s, filter .3s; }
.gallery .item:hover img { transform: scale(1.04); }
.gallery .item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; color: #fff; font-family: var(--serif);
  font-size: 1.05rem; letter-spacing: .01em;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.gallery .item:hover .cap { opacity: 1; }
@media (max-width: 1000px) { .gallery { column-count: 3; } }
@media (max-width: 680px)  { .gallery { column-count: 2; column-gap: 10px; } .gallery .item { margin-bottom: 10px; } }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(20,18,16,.94); align-items: center; justify-content: center;
  padding: 30px; flex-direction: column;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 82vh; box-shadow: 0 20px 60px rgba(0,0,0,.6); border-radius: 2px; }
#lightbox .lb-cap { color: #f2ece3; font-family: var(--serif); font-size: 1.3rem; margin-top: 18px; text-align: center; }
#lightbox .lb-close, #lightbox .lb-prev, #lightbox .lb-next {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff;
  cursor: pointer; font-size: 1.8rem; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
#lightbox .lb-close:hover, #lightbox .lb-prev:hover, #lightbox .lb-next:hover { background: rgba(255,255,255,.25); }
#lightbox .lb-close { top: 22px; right: 26px; }
#lightbox .lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* Bandeau d'images en situation / mockups */
.mockup-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mockup-row img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; aspect-ratio: 4/3; }
@media (max-width: 680px){ .mockup-row { grid-template-columns: 1fr 1fr; } }

/* Image portrait / à propos */
.rounded-img { border-radius: 3px; width: 100%; object-fit: cover; }

/* Légendes galerie : titre + sous-titre */
.gallery .item .cap .cap-t { display:block; font-family:var(--serif); font-size:1.1rem; line-height:1.2; }
.gallery .item .cap .cap-s { display:block; font-family:var(--sans); font-size:.82rem; opacity:.9; margin-top:2px; }
#lightbox .lb-cap .cap-t { display:block; }
#lightbox .lb-cap .cap-s { display:block; font-family:var(--sans); font-size:.95rem; opacity:.85; margin-top:4px; }

/* Lien Administration (discret) */
.footer-bottom nav a.admin-link { color:#b98a5e; }
.footer-bottom nav a.admin-link:hover { color:#fff; }

/* ========== BOUTIQUE ========== */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.shop-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.shop-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.09); transform: translateY(-3px); }
.shop-card .thumb { aspect-ratio: 1/1; background: var(--bg-alt); overflow: hidden; }
.shop-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card h3 { margin: 0; font-size: 1.2rem; }
.shop-card .price { font-family: var(--serif); font-size: 1.1rem; color: var(--accent-dk); }
.shop-card .price.on-request { color: var(--ink-soft); font-family: var(--sans); font-size: .85rem; font-style: italic; }
.shop-card .btn { margin-top: auto; align-self: flex-start; }

/* Formulaire d'achat (modal) */
.buy-modal {
  position: fixed; inset: 0; z-index: 1500; display: none;
  background: rgba(20,18,16,.75); align-items: center; justify-content: center; padding: 20px;
}
.buy-modal.open { display: flex; }
.buy-modal-box {
  background: var(--white); border-radius: 4px; padding: 34px 30px; max-width: 440px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.buy-modal-box h3 { margin-bottom: 6px; }
.buy-modal-artwork { color: var(--accent-dk); font-family: var(--serif); font-size: 1.05rem; margin: 0 0 18px; }
.buy-modal-close {
  position: absolute; top: 14px; right: 14px; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink-soft);
}
.buy-modal-close:hover { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error {
  display: none; margin-top: 16px; padding: 14px 16px;
  background: #fbeceb; border: 1px solid #e3b8b5; border-radius: 2px; color: #a83f3f; font-size: .88rem;
}
@media (max-width: 680px) { .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; } }
