/* Boutique J.Legoff Photografie — même charte que le site (brand-philosophy.md) */
:root {
  --bg: #050505;
  --bg-card: #111111;
  --text: #f4f4f6;
  --text-soft: #c9c9cd;
  --text-muted: #8a8a90;
  --accent: #3d7a52;
  --accent-hover: #4a9362;
  --accent-soft: #5fa074;
  --border-accent: #2a4a35;
  --line: #1a1a1a;
  --or: #d4b062;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.eyebrow { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-soft); }
.rule { width: 44px; height: 2px; background: var(--accent); margin: 1.1rem 0; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.rule.in { transform: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--accent-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.7rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border: 1px solid transparent; background-repeat: no-repeat; background-size: 0% 100%; background-position: left; transition: background-size .6s var(--ease), color .4s, border-color .4s, opacity .3s; }
.btn:hover:not(:disabled) { background-size: 100% 100%; }
.btn-primary { background-color: var(--accent); background-image: linear-gradient(var(--accent-hover), var(--accent-hover)); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Bandeau Noël */
.noel { background: #0f1d12; border-bottom: 1px solid var(--border-accent); color: var(--text-soft); text-align: center; font-size: .82rem; padding: .6rem var(--gutter); }
.noel strong { color: var(--text); font-weight: 500; }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem var(--gutter); background: rgba(5,5,5,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-accent); }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { font-size: .85rem; color: var(--text-muted); background: linear-gradient(var(--accent-soft), var(--accent-soft)) no-repeat right bottom / 0 1px; padding-bottom: 2px; transition: color .2s, background-size .5s var(--ease); }
nav ul a:hover, nav ul a[aria-current] { color: var(--text); background-size: 100% 1px; background-position: left bottom; }

/* Typo cinétique + révélations */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em 0; margin-right: -.06em; }
.w > * { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.split.in .w > * { transform: none; }
.media { position: relative; overflow: hidden; background: var(--bg-card); }
.media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--accent); transform: scaleY(0); pointer-events: none; }
.media img { opacity: 0; }
.media.in::before { animation: wipe 1.1s var(--ease) var(--d, 0s) forwards; }
.media.in img { animation: imgIn 1.4s var(--ease-out) calc(var(--d, 0s) + .5s) forwards; }
@keyframes wipe { 0% { transform: scaleY(0); transform-origin: bottom; } 46% { transform: scaleY(1); transform-origin: bottom; } 54% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: top; } }
@keyframes imgIn { from { opacity: 1; transform: scale(1.18); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.rise.in { opacity: 1; transform: none; }

/* ===== Page boutique ===== */
.b-hero { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2rem; max-width: 56rem; }
.b-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.b-hero > p { color: var(--text-soft); margin-top: 1.2rem; max-width: 38rem; }
.rassure { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 1.6rem; font-size: .82rem; color: var(--text-muted); }
.rassure li::before { content: "✓"; color: var(--accent-soft); margin-right: .45rem; }

.b-section { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.b-cadeaux { background: linear-gradient(180deg, var(--bg), #0b140e 50%, var(--bg)); }
.b-head { max-width: 44rem; margin-bottom: 2.2rem; }
.b-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.b-head p { color: var(--text-muted); margin-top: .6rem; }
.b-head p a { color: var(--text); border-bottom: 1px solid var(--accent); }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2rem 1rem; }
.grille-ed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.carte { display: block; position: relative; }
.carte .media { aspect-ratio: 4 / 3; }
.carte-ed .media { aspect-ratio: 4 / 3; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.carte:hover img { scale: 1.05; }
.carte-titre { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin-top: .8rem; transition: color .3s; }
.carte:hover .carte-titre { color: var(--accent-soft); }
.carte-prix { font-size: .85rem; color: var(--text-muted); margin-top: .2rem; }
.badge-ed { position: absolute; z-index: 3; top: .7rem; left: .7rem; background: rgba(5,5,5,.82); border: 1px solid #8a6d2b; color: var(--or); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; }
.carte[hidden] { display: none; }

.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filtre { padding: .45rem 1.1rem; border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; letter-spacing: .08em; color: var(--text-muted); transition: border-color .3s, color .3s, background .3s; }
.filtre:hover { color: var(--text); border-color: var(--border-accent); }
.filtre.actif { background: var(--accent); border-color: var(--accent); color: #fff; }

.b-faq dl { max-width: 46rem; }
.b-faq dt { font-family: var(--serif); font-size: 1.4rem; color: var(--text); margin-top: 1.6rem; }
.b-faq dd { color: var(--text-soft); margin-top: .3rem; }
.b-faq strong { color: var(--text); font-weight: 500; }
.b-faq a { color: var(--text); border-bottom: 1px solid var(--accent); }

/* ===== Page produit ===== */
.produit { padding: 1.6rem var(--gutter) 0; }
.crumbs { font-size: .78rem; color: var(--text-muted); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--text); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.p-visuel { position: sticky; top: 5.5rem; }
.p-vues { display: flex; gap: 1.2rem; margin-bottom: .8rem; }
.p-vues button { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding-bottom: .2rem; border-bottom: 1px solid transparent; }
.p-vues button[aria-selected="true"] { color: var(--text); border-color: var(--accent-soft); }
.p-visuel .media img { width: 100%; }
.p-note { font-size: .75rem; color: var(--text-muted); margin-top: .6rem; }
.p-infos h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-top: .6rem; }
.p-lieu { color: var(--accent-soft); font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: .3rem; }
.p-desc { color: var(--text-soft); margin-top: 1.2rem; }

.ed-bloc { margin-top: 1.6rem; padding: 1.2rem 1.4rem; border: 1px solid #5c4a20; background: #120f08; font-size: .9rem; color: var(--text-soft); }
.ed-titre { font-family: var(--serif); font-size: 1.35rem; color: var(--or); }
.ed-stock { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: .3rem 0 .6rem; }

.achat { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.achat-label { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .7rem; }
.supports { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.supports button { padding: .5rem 1rem; border: 1px solid var(--line); font-size: .82rem; color: var(--text-muted); transition: all .3s; }
.supports button[aria-selected="true"] { border-color: var(--accent); color: var(--text); background: #0f1d12; }
.options { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.option { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: .95rem 1.1rem; border: 1px solid var(--line); background: var(--bg-card); text-align: left; transition: border-color .3s, background .3s; }
.option:hover { border-color: var(--border-accent); }
.option[aria-pressed="true"] { border-color: var(--accent-soft); background: #0f1d12; }
.option .o-prix { font-family: var(--serif); font-size: 1.3rem; color: var(--accent-soft); }
.btn-achat { width: 100%; }
.achat-livraison { font-size: .82rem; color: var(--text-muted); margin-top: .7rem; min-height: 1.3em; }
.achat-erreur { color: #e08a7a; }
.mug-note { margin-top: 1rem; font-size: .88rem; color: var(--text-muted); }
.p-infos .rassure { flex-direction: column; gap: .4rem; }

footer { margin-top: 3rem; border-top: 1px solid var(--border-accent); padding: 3rem var(--gutter); display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; color: var(--text-muted); font-size: .85rem; }
footer .logo { color: var(--text); }
footer ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  nav ul { gap: 1rem; }
  nav ul li:nth-child(-n+2) { display: none; }
  .p-grid { grid-template-columns: 1fr; }
  .p-visuel { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w > *, .rule { transform: none !important; }
  .rise { opacity: 1; transform: none; }
  .media img { opacity: 1; } .media::before { display: none; }
}
